Spaces:
Running
Running
emojis
Browse files- app/synth.py +3 -1
- app/tts_spaces/mrfakename__MeloTTS.json +1 -2
app/synth.py
CHANGED
|
@@ -191,7 +191,7 @@ def synthandreturn(text, autoplay, request: gr.Request):
|
|
| 191 |
audio.export(f.name, format="wav")
|
| 192 |
os.unlink(result)
|
| 193 |
result = f.name
|
| 194 |
-
gr.Info('Audio from a TTS model received')
|
| 195 |
|
| 196 |
# if model in AVAILABLE_MODELS.keys(): model = AVAILABLE_MODELS[model]
|
| 197 |
result_storage[model] = result
|
|
@@ -276,10 +276,12 @@ def synthandreturn(text, autoplay, request: gr.Request):
|
|
| 276 |
and HF_SPACES[mdl2]['is_zero_gpu_space']
|
| 277 |
):
|
| 278 |
# run Zero-GPU spaces one at a time
|
|
|
|
| 279 |
predict_and_update_result(text, mdl1k, results, request)
|
| 280 |
if results[mdl1k] != None:
|
| 281 |
cache_sample(results[mdl1k], text, mdl1k)
|
| 282 |
|
|
|
|
| 283 |
predict_and_update_result(text, mdl2k, results, request)
|
| 284 |
if results[mdl2k] != None:
|
| 285 |
cache_sample(results[mdl2k], text, mdl2k)
|
|
|
|
| 191 |
audio.export(f.name, format="wav")
|
| 192 |
os.unlink(result)
|
| 193 |
result = f.name
|
| 194 |
+
gr.Info('🗣 Audio from a TTS model received')
|
| 195 |
|
| 196 |
# if model in AVAILABLE_MODELS.keys(): model = AVAILABLE_MODELS[model]
|
| 197 |
result_storage[model] = result
|
|
|
|
| 276 |
and HF_SPACES[mdl2]['is_zero_gpu_space']
|
| 277 |
):
|
| 278 |
# run Zero-GPU spaces one at a time
|
| 279 |
+
gr.Info('Connecting to a Zero-GPU 🤗 Space...', duration=3)
|
| 280 |
predict_and_update_result(text, mdl1k, results, request)
|
| 281 |
if results[mdl1k] != None:
|
| 282 |
cache_sample(results[mdl1k], text, mdl1k)
|
| 283 |
|
| 284 |
+
gr.Info('Connecting to a Zero-GPU 🤗 Space...', duration=3)
|
| 285 |
predict_and_update_result(text, mdl2k, results, request)
|
| 286 |
if results[mdl2k] != None:
|
| 287 |
cache_sample(results[mdl2k], text, mdl2k)
|
app/tts_spaces/mrfakename__MeloTTS.json
CHANGED
|
@@ -4,6 +4,5 @@
|
|
| 4 |
"text_param_index": "text",
|
| 5 |
"return_audio_index": 0,
|
| 6 |
"series": "MeloTTS",
|
| 7 |
-
"
|
| 8 |
-
"title": "Broken space / Outclassed narration voice"
|
| 9 |
}
|
|
|
|
| 4 |
"text_param_index": "text",
|
| 5 |
"return_audio_index": 0,
|
| 6 |
"series": "MeloTTS",
|
| 7 |
+
"title": "Outclassed narration voice"
|
|
|
|
| 8 |
}
|