ahassoun commited on
Commit
13f5713
1 Parent(s): fad0af8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -174,11 +174,11 @@ with gr.Blocks(css=css) as demo:
174
  lines=5,
175
  )
176
  theme_dropdown.change(fn=update_script_text, inputs=[
177
- theme_dropdown, script_type_dropdown], outputs=[script_text, output_script_text, theme_emoji_output, theme_output])
178
  script_type_dropdown.change(fn=update_script_text, inputs=[
179
- theme_dropdown, script_type_dropdown], outputs=[script_text, output_script_text, theme_emoji_output, theme_output])
180
  theme_dropdown.change(fn=update_script_text, inputs=[theme_dropdown, script_type_dropdown], outputs=[
181
- script_text, output_script_text, theme_emoji_output, theme_output])
182
 
183
 
184
  # Replace file input with microphone input
@@ -209,7 +209,7 @@ with gr.Blocks(css=css) as demo:
209
 
210
  submit_btn.click(
211
  fn=infer,
212
- inputs=[script_text, micro_in, script_type_dropdown, theme_dropdown], # Pass theme_output
213
  outputs=[cloned_out, video_out, npz_file, folder_path]
214
  )
215
  demo.queue(api_open=False, max_size=10).launch()
 
174
  lines=5,
175
  )
176
  theme_dropdown.change(fn=update_script_text, inputs=[
177
+ theme_dropdown, script_type_dropdown], outputs=[script_text, output_script_text, theme_emoji_output])
178
  script_type_dropdown.change(fn=update_script_text, inputs=[
179
+ theme_dropdown, script_type_dropdown], outputs=[script_text, output_script_text, theme_emoji_output])
180
  theme_dropdown.change(fn=update_script_text, inputs=[theme_dropdown, script_type_dropdown], outputs=[
181
+ script_text, output_script_text, theme_emoji_output])
182
 
183
 
184
  # Replace file input with microphone input
 
209
 
210
  submit_btn.click(
211
  fn=infer,
212
+ inputs=[script_text, micro_in, script_type_dropdown, theme_dropdown], # Pass theme_dropdown
213
  outputs=[cloned_out, video_out, npz_file, folder_path]
214
  )
215
  demo.queue(api_open=False, max_size=10).launch()