jerrypan7 commited on
Commit
f166330
·
verified ·
1 Parent(s): 25e7afc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -154,7 +154,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
154
  def update_button_state(audio, youtube_url):
155
  print(" audio: ",audio, " youtube_url: ", youtube_url)
156
  # Button is interactive if there's input and progress is 0 or 1 (not in progress)
157
- return gr.Button(interactive=bool(audio) or bool(youtube_url !=))
158
 
159
  audio_input.change(
160
  fn=update_button_state,
 
154
  def update_button_state(audio, youtube_url):
155
  print(" audio: ",audio, " youtube_url: ", youtube_url)
156
  # Button is interactive if there's input and progress is 0 or 1 (not in progress)
157
+ return gr.Button(interactive=bool(audio) or bool(youtube_url !=""))
158
 
159
  audio_input.change(
160
  fn=update_button_state,