Spaces:
Runtime error
Runtime error
Commit
·
535e903
1
Parent(s):
206a641
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,7 +39,8 @@ def main():
|
|
| 39 |
|
| 40 |
audio = gr.outputs.Audio(label="Generated Audio", type="numpy")
|
| 41 |
|
| 42 |
-
def generate_audio(file, speaker_str):
|
|
|
|
| 43 |
return synthesize_audio(file, speaker_str)
|
| 44 |
|
| 45 |
iface = gr.Interface(
|
|
@@ -51,8 +52,6 @@ def main():
|
|
| 51 |
debug=True
|
| 52 |
)
|
| 53 |
|
| 54 |
-
model_name_dropdown.set_action(set_model)
|
| 55 |
-
|
| 56 |
iface.launch()
|
| 57 |
|
| 58 |
if __name__ == "__main__":
|
|
|
|
| 39 |
|
| 40 |
audio = gr.outputs.Audio(label="Generated Audio", type="numpy")
|
| 41 |
|
| 42 |
+
def generate_audio(file, model_name_str, speaker_str):
|
| 43 |
+
set_model(model_name_str)
|
| 44 |
return synthesize_audio(file, speaker_str)
|
| 45 |
|
| 46 |
iface = gr.Interface(
|
|
|
|
| 52 |
debug=True
|
| 53 |
)
|
| 54 |
|
|
|
|
|
|
|
| 55 |
iface.launch()
|
| 56 |
|
| 57 |
if __name__ == "__main__":
|