add limit
Browse files
app.py
CHANGED
@@ -245,12 +245,16 @@ with gr.Blocks(css=css) as demo:
|
|
245 |
generate_vanilla,
|
246 |
inputs=[prompt, num_inference_steps, guidance_scale],
|
247 |
outputs=[video_output],
|
|
|
|
|
248 |
)
|
249 |
|
250 |
generate_button_vs.click(
|
251 |
generate_vs,
|
252 |
inputs=[prompt, num_inference_steps, guidance_scale, pab_threshold_start, pab_threshold_end, pab_range],
|
253 |
outputs=[video_output_vs],
|
|
|
|
|
254 |
)
|
255 |
|
256 |
refresh_button.click(update_server_status, outputs=[cpu_status, memory_status, disk_status, gpu_status])
|
|
|
245 |
generate_vanilla,
|
246 |
inputs=[prompt, num_inference_steps, guidance_scale],
|
247 |
outputs=[video_output],
|
248 |
+
concurrency_id="gen",
|
249 |
+
concurrency_limit=1,
|
250 |
)
|
251 |
|
252 |
generate_button_vs.click(
|
253 |
generate_vs,
|
254 |
inputs=[prompt, num_inference_steps, guidance_scale, pab_threshold_start, pab_threshold_end, pab_range],
|
255 |
outputs=[video_output_vs],
|
256 |
+
concurrency_id="gen",
|
257 |
+
concurrency_limit=1,
|
258 |
)
|
259 |
|
260 |
refresh_button.click(update_server_status, outputs=[cpu_status, memory_status, disk_status, gpu_status])
|