Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -190,13 +190,7 @@ async def main(
|
|
| 190 |
# global renamed_audio_file
|
| 191 |
# renamed_audio_file = os.path.join(tempfile.gettempdir(), f"{text_input}.mp3")
|
| 192 |
# os.rename(temp_audio_file.name, renamed_audio_file)
|
| 193 |
-
|
| 194 |
-
speaker_selection.options = config["speaker_id_map"].values()
|
| 195 |
-
speaker_selection.layout.visibility = 'visible'
|
| 196 |
-
preview_sid = 0
|
| 197 |
-
else:
|
| 198 |
-
speaker_selection.layout.visibility = 'hidden'
|
| 199 |
-
preview_sid = None
|
| 200 |
else:
|
| 201 |
voice_model_names = []
|
| 202 |
for current in onnx_models:
|
|
|
|
| 190 |
# global renamed_audio_file
|
| 191 |
# renamed_audio_file = os.path.join(tempfile.gettempdir(), f"{text_input}.mp3")
|
| 192 |
# os.rename(temp_audio_file.name, renamed_audio_file)
|
| 193 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 194 |
else:
|
| 195 |
voice_model_names = []
|
| 196 |
for current in onnx_models:
|