ahassoun commited on
Commit
4edabe1
·
1 Parent(s): 60af96b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -67,9 +67,9 @@ NEW INFERENCE:
67
  else:
68
  prompt = prompt
69
 
70
- chosen_script = script_choices.get(
71
- theme_dropdown.value, {}).get(script_type, "")
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",