Shahzeb99 commited on
Commit
054b8d0
·
verified ·
1 Parent(s): 88d118f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -45,6 +45,8 @@ with gr.Blocks(title="Article → Highlights") as demo:
45
  out = gr.Textbox(lines=8, label="Highlights")
46
  btn.click(summarize_fn, [inp, max_new, min_new, beams, lp], out)
47
 
48
- demo.queue(concurrency_count=2, max_size=10)
 
49
  if __name__ == "__main__":
50
  demo.launch()
 
 
45
  out = gr.Textbox(lines=8, label="Highlights")
46
  btn.click(summarize_fn, [inp, max_new, min_new, beams, lp], out)
47
 
48
+ # works across recent Gradio versions
49
+ demo.queue() # or just remove this line entirely
50
  if __name__ == "__main__":
51
  demo.launch()
52
+