Update app.py
Browse files
app.py
CHANGED
|
@@ -69,7 +69,7 @@ def save_fn(audio, text):
|
|
| 69 |
|
| 70 |
uid = str(uuid.uuid4())
|
| 71 |
|
| 72 |
-
with open(f"{uid}.txt"
|
| 73 |
f.write(text)
|
| 74 |
s3.Bucket(BUCKET).upload_file(f"{uid}.txt", f"texts/{uid}.txt") #local path, bucket path
|
| 75 |
|
|
|
|
| 69 |
|
| 70 |
uid = str(uuid.uuid4())
|
| 71 |
|
| 72 |
+
with open(f"{uid}.txt", "w", encoding="utf-8") as f:
|
| 73 |
f.write(text)
|
| 74 |
s3.Bucket(BUCKET).upload_file(f"{uid}.txt", f"texts/{uid}.txt") #local path, bucket path
|
| 75 |
|