Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,10 +28,7 @@ def respond(message, chat_history):
|
|
28 |
# history.append((inp, output))
|
29 |
# return history
|
30 |
|
31 |
-
|
32 |
-
block = gr.Blocks(css=".gradio-container {background-color: lightblue}")
|
33 |
-
|
34 |
-
with block:
|
35 |
|
36 |
chatbot = gr.Chatbot()
|
37 |
|
@@ -47,7 +44,7 @@ with block:
|
|
47 |
label="What would you like to talk about?",
|
48 |
type = "text",
|
49 |
)
|
50 |
-
message.submit(respond, [
|
51 |
|
52 |
with gr.Row():
|
53 |
submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
|
|
|
28 |
# history.append((inp, output))
|
29 |
# return history
|
30 |
|
31 |
+
with gr.Blocks(theme=gr.themes.Soft()):
|
|
|
|
|
|
|
32 |
|
33 |
chatbot = gr.Chatbot()
|
34 |
|
|
|
44 |
label="What would you like to talk about?",
|
45 |
type = "text",
|
46 |
)
|
47 |
+
message.submit(respond, [message, chatbot], [msg, chatbot])
|
48 |
|
49 |
with gr.Row():
|
50 |
submit = gr.Button(value="Send", variant="secondary").style(full_width=False)
|