Spaces:
Sleeping
Sleeping
Update htmlTemplates.py
Browse files- htmlTemplates.py +1 -1
htmlTemplates.py
CHANGED
|
@@ -2,7 +2,7 @@ import base64
|
|
| 2 |
import os
|
| 3 |
|
| 4 |
def get_base64_image(path: str) -> str:
|
| 5 |
-
"""خواندن فایل
|
| 6 |
if not os.path.exists(path):
|
| 7 |
raise FileNotFoundError(f"Avatar not found: {path}")
|
| 8 |
with open(path, "rb") as f:
|
|
|
|
| 2 |
import os
|
| 3 |
|
| 4 |
def get_base64_image(path: str) -> str:
|
| 5 |
+
"""خواندن فایل عکس و تبدیل به base64"""
|
| 6 |
if not os.path.exists(path):
|
| 7 |
raise FileNotFoundError(f"Avatar not found: {path}")
|
| 8 |
with open(path, "rb") as f:
|