Spaces:
Runtime error
Runtime error
Commit
·
29d71e9
1
Parent(s):
40d0458
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ chat_history = ['']
|
|
27 |
|
28 |
|
29 |
with gr.Blocks() as demo:
|
30 |
-
chatbot = gr.Chatbot()
|
31 |
msg = gr.Textbox()
|
32 |
clear = gr.ClearButton([msg, chatbot])
|
33 |
|
@@ -43,6 +43,6 @@ with gr.Blocks() as demo:
|
|
43 |
time.sleep(2)
|
44 |
return "", chat_history
|
45 |
|
46 |
-
msg.submit(respond,[msg,chatbot],[msg,chatbot]
|
47 |
|
48 |
demo.launch()
|
|
|
27 |
|
28 |
|
29 |
with gr.Blocks() as demo:
|
30 |
+
chatbot = gr.Chatbot(value=[], elem_id="chatbot").style(height=650)
|
31 |
msg = gr.Textbox()
|
32 |
clear = gr.ClearButton([msg, chatbot])
|
33 |
|
|
|
43 |
time.sleep(2)
|
44 |
return "", chat_history
|
45 |
|
46 |
+
msg.submit(respond,[msg,chatbot],[msg,chatbot])
|
47 |
|
48 |
demo.launch()
|