Tomoniai commited on
Commit
19423df
·
1 Parent(s): ba0918e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -43,9 +43,7 @@ mychatbot = gr.Chatbot(
43
  bubble_full_width=False, show_label=False, show_copy_button=True,)
44
 
45
 
46
- with gr.Blocks() as demo:
47
- gr.ChatInterface(
48
- generate,
49
  chatbot=mychatbot,
50
  title="Z7 Chat",
51
  retry_btn=None,
@@ -53,4 +51,4 @@ with gr.Blocks() as demo:
53
  clear_btn=None
54
  )
55
 
56
- demo.queue(concurrency_count=30, max_size=100).launch(show_api=False)
 
43
  bubble_full_width=False, show_label=False, show_copy_button=True,)
44
 
45
 
46
+ demo = gr.ChatInterface(fn=generate,
 
 
47
  chatbot=mychatbot,
48
  title="Z7 Chat",
49
  retry_btn=None,
 
51
  clear_btn=None
52
  )
53
 
54
+ demo.queue().launch(show_api=False)