Spaces:
Sleeping
Sleeping
Alexandre Gazola
commited on
Commit
·
a3d2d6f
1
Parent(s):
abffb61
fix
Browse files
utils.py
CHANGED
@@ -50,7 +50,7 @@ def get_text_file_contents(file_path):
|
|
50 |
def clean_text(text: str) -> str:
|
51 |
return text.encode("ascii", errors="ignore").decode()
|
52 |
|
53 |
-
def get_base64(
|
54 |
with open(file_path, "r", encoding="utf-8") as f:
|
55 |
base64_data = f.read().strip()
|
56 |
return base64_data
|
|
|
50 |
def clean_text(text: str) -> str:
|
51 |
return text.encode("ascii", errors="ignore").decode()
|
52 |
|
53 |
+
def get_base64(file_path: str) -> str:
|
54 |
with open(file_path, "r", encoding="utf-8") as f:
|
55 |
base64_data = f.read().strip()
|
56 |
return base64_data
|