akellyirl commited on
Commit
4a29efa
·
1 Parent(s): f971e2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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]).then(text_fn)
 
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"],