smartdigitalnetworks commited on
Commit
08e874b
·
verified ·
1 Parent(s): 5ab5c35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -767,11 +767,10 @@ with gr.Blocks(css="footer {display:none !important}") as demo:
767
  list(MODELS.keys())[0],
768
  ],
769
  ],
770
- inputs=[user_files, user_prompt, top_p, temperature, model_choice],
771
- outputs=[generated_command, generated_video],
772
- fn=update,
773
- run_on_click=True,
774
- cache_examples="lazy",
775
  )
776
 
777
  with gr.Row():
 
767
  list(MODELS.keys())[0],
768
  ],
769
  ],
770
+ inputs=[user_files, user_prompt, top_p, temperature, model_choice],
771
+ outputs=[generated_command, generated_video],
772
+ fn=update, # Required to cache examples
773
+ cache_examples=False, # Set to True if you want to pre-process
 
774
  )
775
 
776
  with gr.Row():