Spaces:
Runtime error
Runtime error
Commit
·
0840340
1
Parent(s):
722bf42
Update app.py
Browse files
app.py
CHANGED
@@ -29,8 +29,9 @@ history = ['']
|
|
29 |
with gr.Blocks() as demo:
|
30 |
chatbot = gr.Chatbot()
|
31 |
msg = gr.Textbox()
|
|
|
32 |
clear = gr.ClearButton([msg, chatbot])
|
33 |
-
|
34 |
|
35 |
def user(user_message, history):
|
36 |
return gr.update(value="", interactive=False), history + [[user_message,None]]
|
|
|
29 |
with gr.Blocks() as demo:
|
30 |
chatbot = gr.Chatbot()
|
31 |
msg = gr.Textbox()
|
32 |
+
btn = gr.Button("Submit",css="{background-color: orange}")
|
33 |
clear = gr.ClearButton([msg, chatbot])
|
34 |
+
|
35 |
|
36 |
def user(user_message, history):
|
37 |
return gr.update(value="", interactive=False), history + [[user_message,None]]
|