fffiloni commited on
Commit
58fa1eb
1 Parent(s): 06acbc9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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="", interactive=False), gr.update(visible=False)
202
 
203
  css="""
204
  #col-container{
@@ -244,7 +244,7 @@ with gr.Blocks(css=css) as demo:
244
  cache_examples=False
245
  )
246
 
247
- video_in.change(
248
  fn = refresh,
249
  inputs = None,
250
  outputs = [caption_o, retry_btn],
 
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{
 
244
  cache_examples=False
245
  )
246
 
247
+ video_in.upload(
248
  fn = refresh,
249
  inputs = None,
250
  outputs = [caption_o, retry_btn],