jerrypan7 commited on
Commit
8caccdc
·
verified ·
1 Parent(s): c78f45d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -137,7 +137,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
137
  # Button is interactive if there's input and progress is 0 or 1 (not in progress)
138
  return gr.Button(interactive=bool(audio) or bool(youtube_url !=""))
139
  def update_button_state_youtube(audio, youtube_url):
140
- global last_modified
141
  print(" youtube: ",audio, " youtube_url: ", youtube_url)
142
  last_modified=2
143
  # Button is interactive if there's input and progress is 0 or 1 (not in progress)
 
137
  # Button is interactive if there's input and progress is 0 or 1 (not in progress)
138
  return gr.Button(interactive=bool(audio) or bool(youtube_url !=""))
139
  def update_button_state_youtube(audio, youtube_url):
140
+ global last_modified
141
  print(" youtube: ",audio, " youtube_url: ", youtube_url)
142
  last_modified=2
143
  # Button is interactive if there's input and progress is 0 or 1 (not in progress)