Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -28,35 +28,9 @@ def chat_function(message, history):
|
|
28 |
|
29 |
return "", history
|
30 |
|
31 |
-
with gr.Blocks(theme=gr.themes.Glass()
|
32 |
-
|
33 |
-
|
34 |
-
}
|
35 |
-
|
36 |
-
.gradio-chatbot .message.user {
|
37 |
-
background-color: #e1f7d5;
|
38 |
-
border-radius: 10px;
|
39 |
-
padding: 10px;
|
40 |
-
margin: 5px;
|
41 |
-
max-width: 70%;
|
42 |
-
margin-left: auto;
|
43 |
-
}
|
44 |
-
|
45 |
-
.gradio-chatbot .message.ai {
|
46 |
-
background-color: #f0f0f0;
|
47 |
-
border-radius: 10px;
|
48 |
-
padding: 10px;
|
49 |
-
margin: 5px;
|
50 |
-
max-width: 70%;
|
51 |
-
margin-right: auto;
|
52 |
-
}
|
53 |
-
|
54 |
-
.gradio-chatbot .message {
|
55 |
-
font-size: 16px;
|
56 |
-
}
|
57 |
-
""") as demo:
|
58 |
-
chatbot = gr.Chatbot(label=None)
|
59 |
-
msg = gr.Textbox(placeholder="Message Z3ta...", label=None)
|
60 |
|
61 |
msg.submit(chat_function, [msg, chatbot], [msg, chatbot])
|
62 |
|
|
|
28 |
|
29 |
return "", history
|
30 |
|
31 |
+
with gr.Blocks(theme=gr.themes.Glass()) as demo:
|
32 |
+
chatbot = gr.Chatbot()
|
33 |
+
msg = gr.Textbox(placeholder="Message Z3ta...")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
|
35 |
msg.submit(chat_function, [msg, chatbot], [msg, chatbot])
|
36 |
|