Spaces:
Running
Running
littlebird13
commited on
Commit
•
f0e44a8
1
Parent(s):
6c550ce
Update app.py
Browse files
app.py
CHANGED
@@ -85,18 +85,21 @@ with gr.Blocks() as demo:
|
|
85 |
|
86 |
textbox.submit(model_chat,
|
87 |
inputs=[textbox, chatbot, system_state],
|
88 |
-
outputs=[textbox, chatbot, system_input]
|
|
|
89 |
|
90 |
sumbit.click(model_chat,
|
91 |
inputs=[textbox, chatbot, system_state],
|
92 |
outputs=[textbox, chatbot, system_input],
|
93 |
-
concurrency_limit =
|
94 |
clear_history.click(fn=clear_session,
|
95 |
inputs=[],
|
96 |
-
outputs=[textbox, chatbot]
|
|
|
97 |
modify_system.click(fn=modify_system_session,
|
98 |
inputs=[system_input],
|
99 |
-
outputs=[system_state, system_input, chatbot]
|
|
|
100 |
|
101 |
demo.queue(api_open=False)
|
102 |
-
demo.launch(max_threads=
|
|
|
85 |
|
86 |
textbox.submit(model_chat,
|
87 |
inputs=[textbox, chatbot, system_state],
|
88 |
+
outputs=[textbox, chatbot, system_input],
|
89 |
+
concurrency_limit = 20)
|
90 |
|
91 |
sumbit.click(model_chat,
|
92 |
inputs=[textbox, chatbot, system_state],
|
93 |
outputs=[textbox, chatbot, system_input],
|
94 |
+
concurrency_limit = 20)
|
95 |
clear_history.click(fn=clear_session,
|
96 |
inputs=[],
|
97 |
+
outputs=[textbox, chatbot],
|
98 |
+
concurrency_limit = 20)
|
99 |
modify_system.click(fn=modify_system_session,
|
100 |
inputs=[system_input],
|
101 |
+
outputs=[system_state, system_input, chatbot],
|
102 |
+
concurrency_limit = 20)
|
103 |
|
104 |
demo.queue(api_open=False)
|
105 |
+
demo.launch(max_threads=20)
|