T.Masuda commited on
Commit
c476863
·
1 Parent(s): 080cf4b

update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -36,7 +36,7 @@ def generate(input_text, maxlen):
36
  generated_text = output[0]['generated_text'][len(input) + 1:]
37
  return generated_text
38
 
39
- with gr.Blocks(title='question answering ja') as chatbox:
40
  gr.Markdown('# Question Answering JA')
41
 
42
  chatbot = gr.Chatbot(label='answer')
@@ -53,4 +53,5 @@ with gr.Blocks(title='question answering ja') as chatbox:
53
 
54
  msg.submit(respond, [msg, maxlen, chatbot], [msg, chatbot])
55
 
56
- chatbox.launch()
 
 
36
  generated_text = output[0]['generated_text'][len(input) + 1:]
37
  return generated_text
38
 
39
+ with gr.Blocks(title='question answering ja') as app:
40
  gr.Markdown('# Question Answering JA')
41
 
42
  chatbot = gr.Chatbot(label='answer')
 
53
 
54
  msg.submit(respond, [msg, maxlen, chatbot], [msg, chatbot])
55
 
56
+ app.queue(concurrency_count=20)
57
+ app.launch()