ywen commited on
Commit
d27c2b8
1 Parent(s): 2430d13

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -57,7 +57,7 @@ def inference_text(target_prompt, prompt_len, iter):
57
 
58
  gr.Progress(track_tqdm=True)
59
 
60
- demo = gr.Blocks()
61
 
62
  with demo:
63
  gr.Markdown("# PEZ Dispenser")
@@ -97,4 +97,4 @@ with demo:
97
 
98
  gr.Markdown("![visitor badge](https://visitor-badge.glitch.me/badge?page_id=tomg-group-umd_pez-dispenser)")
99
 
100
- demo.launch(enable_queue=True)
 
57
 
58
  gr.Progress(track_tqdm=True)
59
 
60
+ demo = gr.Blocks().queue(default_concurrency_limit=5)
61
 
62
  with demo:
63
  gr.Markdown("# PEZ Dispenser")
 
97
 
98
  gr.Markdown("![visitor badge](https://visitor-badge.glitch.me/badge?page_id=tomg-group-umd_pez-dispenser)")
99
 
100
+ demo.launch()