Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
|
@@ -50,7 +50,7 @@ async def generate_audio(
|
|
| 50 |
)
|
| 51 |
print(output_file)
|
| 52 |
# Read the file content and yield as binary
|
| 53 |
-
with open(
|
| 54 |
yield audio_file.read()
|
| 55 |
# Optionally delete the file after streaming
|
| 56 |
os.remove(output_file)
|
|
|
|
| 50 |
)
|
| 51 |
print(output_file)
|
| 52 |
# Read the file content and yield as binary
|
| 53 |
+
with open(output_file, "rb") as audio_file:
|
| 54 |
yield audio_file.read()
|
| 55 |
# Optionally delete the file after streaming
|
| 56 |
os.remove(output_file)
|