kunishou commited on
Commit
5562809
1 Parent(s): dbcbd2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -81,7 +81,7 @@ with gr.Blocks() as demo:
81
  txt_2 = gr.Textbox(lines=2, label="Additional text", placeholder="文章を要約、翻訳したい場合などに任意で付属テキストを入力して下さい.", max_lines=3)
82
  txt_3 = gr.Textbox(lines=8, label="Output")
83
  btn = gr.Button(value="下記の免責事項・利用目的に同意して送信")
84
- btn.click(evaluate, inputs=[txt, txt_2], outputs=[txt_3])
85
 
86
  gr.Markdown(
87
  """
@@ -97,4 +97,4 @@ with gr.Blocks() as demo:
97
  """)
98
 
99
  if __name__ == "__main__":
100
- demo.queue(max_size=20, concurrency_count=10).launch()
 
81
  txt_2 = gr.Textbox(lines=2, label="Additional text", placeholder="文章を要約、翻訳したい場合などに任意で付属テキストを入力して下さい.", max_lines=3)
82
  txt_3 = gr.Textbox(lines=8, label="Output")
83
  btn = gr.Button(value="下記の免責事項・利用目的に同意して送信")
84
+ btn.click(evaluate, inputs=[txt, txt_2], outputs=[txt_3], concurrency_limit=10)
85
 
86
  gr.Markdown(
87
  """
 
97
  """)
98
 
99
  if __name__ == "__main__":
100
+ demo.queue(max_size=20).launch(max_threads=10)