Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -197,6 +197,7 @@ async def main(
|
|
| 197 |
audio.export(temp_audio_file.name, format="mp3")
|
| 198 |
|
| 199 |
# Rename the temporary audio file based on the text input
|
|
|
|
| 200 |
renamed_audio_file = os.path.join(tempfile.gettempdir(), f"{text_input}.mp3")
|
| 201 |
os.rename(temp_audio_file.name, renamed_audio_file)
|
| 202 |
|
|
|
|
| 197 |
audio.export(temp_audio_file.name, format="mp3")
|
| 198 |
|
| 199 |
# Rename the temporary audio file based on the text input
|
| 200 |
+
global renamed_audio_file
|
| 201 |
renamed_audio_file = os.path.join(tempfile.gettempdir(), f"{text_input}.mp3")
|
| 202 |
os.rename(temp_audio_file.name, renamed_audio_file)
|
| 203 |
|