Spaces:
Sleeping
Sleeping
Alexandre Gazola
commited on
Commit
·
28b0e00
1
Parent(s):
c46b65e
fix leitura base64
Browse files
utils.py
CHANGED
@@ -51,5 +51,5 @@ def clean_text(text: str) -> str:
|
|
51 |
return text.encode("ascii", errors="ignore").decode()
|
52 |
|
53 |
def get_base64(path: str) -> str:
|
54 |
-
with open(path, "
|
55 |
return base64.b64encode(f.read()).decode("utf-8")
|
|
|
51 |
return text.encode("ascii", errors="ignore").decode()
|
52 |
|
53 |
def get_base64(path: str) -> str:
|
54 |
+
with open(path, "r") as f:
|
55 |
return base64.b64encode(f.read()).decode("utf-8")
|