Ubuntu commited on
Commit
992acbf
1 Parent(s): 3cfe0fd

update handling

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -179,7 +179,8 @@ with gr.Blocks() as demo:
179
  user_audio_output = gr.Audio(label="Translated Speech")
180
 
181
  def update_button_state(audio, youtube_url):
182
- return gr.Button.update(interactive=bool(audio) or bool(youtube_url))
 
183
 
184
  user_audio_input.change(
185
  fn=update_button_state,
 
179
  user_audio_output = gr.Audio(label="Translated Speech")
180
 
181
  def update_button_state(audio, youtube_url):
182
+ print(audio, youtube_url)
183
+ return gr.Button(interactive=bool(audio) or bool(youtube_url))
184
 
185
  user_audio_input.change(
186
  fn=update_button_state,