Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
| 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 |
-
|
|
|
|
| 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)
|