Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -67,9 +67,9 @@ NEW INFERENCE:
|
|
67 |
else:
|
68 |
prompt = prompt
|
69 |
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
gr.Info("Generating audio from prompt")
|
74 |
tts.tts_to_file(text=chosen_script,
|
75 |
file_path="output.wav",
|
|
|
67 |
else:
|
68 |
prompt = prompt
|
69 |
|
70 |
+
theme_dict = script_choices.get(theme_dropdown.value, {})
|
71 |
+
chosen_script = theme_dict.get(script_type, "")
|
72 |
+
|
73 |
gr.Info("Generating audio from prompt")
|
74 |
tts.tts_to_file(text=chosen_script,
|
75 |
file_path="output.wav",
|