ZGDD commited on
Commit
7f51eea
·
1 Parent(s): 36a9f99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -54,7 +54,7 @@ def predict(input, history=[]):
54
  responses = [(u,b) for u,b in zip(history[::2], history[1::2])]
55
  return responses, history
56
 
57
- with gr.Blocks(css="#chatbot{height:350px} .overflow-y-auto{height:500px}") as demo:
58
  chatbot = gr.Chatbot(elem_id="chatbot")
59
  state = gr.State([])
60
 
@@ -63,4 +63,4 @@ with gr.Blocks(css="#chatbot{height:350px} .overflow-y-auto{height:500px}") as d
63
 
64
  txt.submit(predict, [txt, state], [chatbot, state])
65
 
66
- demo.launch(share=True)
 
54
  responses = [(u,b) for u,b in zip(history[::2], history[1::2])]
55
  return responses, history
56
 
57
+ with gr.Blocks(css="#chatbot{height:350px} .overflow-y-auto{height:500px}") as chatRobot:
58
  chatbot = gr.Chatbot(elem_id="chatbot")
59
  state = gr.State([])
60
 
 
63
 
64
  txt.submit(predict, [txt, state], [chatbot, state])
65
 
66
+ chatRobot.launch(share=True)