kz919 commited on
Commit
58c4259
1 Parent(s): e53bd94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -103,5 +103,6 @@ with gr.Blocks() as demo:
103
  msg.submit(respond, [msg, chatbot, persona_input, quotes_input], [msg, chatbot])
104
  clear.click(lambda: None, None, chatbot, queue=False)
105
 
106
- demo.queue(max_size=20, api_open = False)
107
- demo.launch(max_threads = 5)
 
 
103
  msg.submit(respond, [msg, chatbot, persona_input, quotes_input], [msg, chatbot])
104
  clear.click(lambda: None, None, chatbot, queue=False)
105
 
106
+ if __name__ == "__main__":
107
+ demo.queue(max_size=20)
108
+ demo.launch(max_threads = 5)