Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -153,7 +153,7 @@ async def main(
|
|
153 |
|
154 |
|
155 |
# Rename the audio file based on the text input
|
156 |
-
renamed_audio_file = os.path.join(temp_dir, f"{text_input}.
|
157 |
# audio.export(renamed_audio_file, format="mp3")
|
158 |
# Save the generated audio as a temporary file
|
159 |
filepath = renamed_audio_file
|
@@ -165,7 +165,7 @@ async def main(
|
|
165 |
files[file_id] = filepath
|
166 |
|
167 |
# Create a URL to download the file
|
168 |
-
file_url = f'
|
169 |
# os.rename(temp_audio_file, renamed_audio_file)
|
170 |
# Specify the path to your MP3 audio file
|
171 |
# audio_file_path = "path/to/your/audio.mp3"
|
|
|
153 |
|
154 |
|
155 |
# Rename the audio file based on the text input
|
156 |
+
renamed_audio_file = os.path.join(temp_dir, f"{text_input}.wav")
|
157 |
# audio.export(renamed_audio_file, format="mp3")
|
158 |
# Save the generated audio as a temporary file
|
159 |
filepath = renamed_audio_file
|
|
|
165 |
files[file_id] = filepath
|
166 |
|
167 |
# Create a URL to download the file
|
168 |
+
file_url = f'/?fileId={file_id}'
|
169 |
# os.rename(temp_audio_file, renamed_audio_file)
|
170 |
# Specify the path to your MP3 audio file
|
171 |
# audio_file_path = "path/to/your/audio.mp3"
|