Long Queue and Not using all GPU problem Solved.

#2
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -304,6 +304,8 @@ with gr.Blocks() as demo:
304
  generate,
305
  inputs=[prompt, seed_param, enable_scale, enable_rife],
306
  outputs=[video_output, download_video_button, download_gif_button, seed_text],
 
 
307
  )
308
 
309
  enhance_button.click(enhance_prompt_func, inputs=[prompt], outputs=[prompt])
 
304
  generate,
305
  inputs=[prompt, seed_param, enable_scale, enable_rife],
306
  outputs=[video_output, download_video_button, download_gif_button, seed_text],
307
+ concurrency_limit=8,
308
+ queue=False,
309
  )
310
 
311
  enhance_button.click(enhance_prompt_func, inputs=[prompt], outputs=[prompt])