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