Update app.py
Browse files
app.py
CHANGED
|
@@ -151,7 +151,8 @@ with gr.Blocks() as demo:
|
|
| 151 |
#msg.submit(predict, [msg, chatbot], [msg, chatbot])
|
| 152 |
# Submit on Enter or Button click
|
| 153 |
gr.on(triggers=[msg.submit, submit.click],
|
| 154 |
-
fn= predict, inputs=[msg, chatbot], outputs=[msg, chatbot]
|
|
|
|
| 155 |
|
| 156 |
gr.examples=([["What are the main topics?"],["Summarise the lesson"],["Explain this simply"],
|
| 157 |
["Suggest a topic"],["Tell me more about that"],
|
|
|
|
| 151 |
#msg.submit(predict, [msg, chatbot], [msg, chatbot])
|
| 152 |
# Submit on Enter or Button click
|
| 153 |
gr.on(triggers=[msg.submit, submit.click],
|
| 154 |
+
fn= predict, inputs=[msg, chatbot], outputs=[msg, chatbot],
|
| 155 |
+
concurrency_limit = 100).then(text_fn)
|
| 156 |
|
| 157 |
gr.examples=([["What are the main topics?"],["Summarise the lesson"],["Explain this simply"],
|
| 158 |
["Suggest a topic"],["Tell me more about that"],
|