Spaces:
Running
Running
TTS vs The World
Browse files
app.py
CHANGED
@@ -606,7 +606,11 @@ def synthandreturn(text):
|
|
606 |
except:
|
607 |
pass
|
608 |
# Get two random models
|
609 |
-
|
|
|
|
|
|
|
|
|
610 |
log_text(text)
|
611 |
print("[debug] Using", mdl1, mdl2)
|
612 |
def predict_and_update_result(text, model, result_storage):
|
@@ -647,7 +651,6 @@ def synthandreturn(text):
|
|
647 |
|
648 |
# return path to audio
|
649 |
print(results)
|
650 |
-
print(return_audio_index)
|
651 |
result = results[return_audio_index] if (not isinstance(results, str)) else results
|
652 |
else:
|
653 |
# Use the private HF Space
|
|
|
606 |
except:
|
607 |
pass
|
608 |
# Get two random models
|
609 |
+
# your TTS model versus The World!!!
|
610 |
+
mdl1 = 'Pendrokar/xVASynth'
|
611 |
+
mdl2 = random.sample(list(AVAILABLE_MODELS.keys()), 1)
|
612 |
+
mdl1, mdl2 = random.sample(list([mdl1, mdl2[0]]), 2)
|
613 |
+
# mdl1, mdl2 = random.sample(list(AVAILABLE_MODELS.keys()), 2)
|
614 |
log_text(text)
|
615 |
print("[debug] Using", mdl1, mdl2)
|
616 |
def predict_and_update_result(text, model, result_storage):
|
|
|
651 |
|
652 |
# return path to audio
|
653 |
print(results)
|
|
|
654 |
result = results[return_audio_index] if (not isinstance(results, str)) else results
|
655 |
else:
|
656 |
# Use the private HF Space
|