Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -198,7 +198,7 @@ def retry(edited_prompt, video_in, chosen_model):
|
|
198 |
return audio_result, final_res
|
199 |
|
200 |
def refresh():
|
201 |
-
return gr.update(value=None, interactive=False), gr.update(visible=False)
|
202 |
|
203 |
css="""
|
204 |
#col-container{
|
@@ -247,7 +247,15 @@ with gr.Blocks(css=css) as demo:
|
|
247 |
video_in.change(
|
248 |
fn = refresh,
|
249 |
inputs = None,
|
250 |
-
outputs = [caption_o, retry_btn],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
251 |
queue = False,
|
252 |
show_progress = False
|
253 |
)
|
|
|
198 |
return audio_result, final_res
|
199 |
|
200 |
def refresh():
|
201 |
+
return gr.update(value=None, interactive=False), gr.update(visible=False), gr.update(value=None), gr.update(value=None)
|
202 |
|
203 |
css="""
|
204 |
#col-container{
|
|
|
247 |
video_in.change(
|
248 |
fn = refresh,
|
249 |
inputs = None,
|
250 |
+
outputs = [caption_o, retry_btn, audio_o, video_o],
|
251 |
+
queue = False,
|
252 |
+
show_progress = False
|
253 |
+
)
|
254 |
+
|
255 |
+
video_in.clear(
|
256 |
+
fn = refresh,
|
257 |
+
inputs = None,
|
258 |
+
outputs = [caption_o, retry_btn, audio_o, video_o],
|
259 |
queue = False,
|
260 |
show_progress = False
|
261 |
)
|