Update app.py
Browse files
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 |
-
|
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)
|