Spaces:
Sleeping
Sleeping
T.Masuda
commited on
Commit
·
c476863
1
Parent(s):
080cf4b
update app.py
Browse files
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
|
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 |
-
|
|
|
|
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()
|