Update app.py
Browse files
app.py
CHANGED
@@ -131,8 +131,13 @@ system_msg_info = ""
|
|
131 |
theme = gr.themes.Soft(primary_hue="zinc", secondary_hue="green", neutral_hue="blue",
|
132 |
text_size=gr.themes.sizes.text_sm)
|
133 |
|
134 |
-
with gr.Blocks(css="""
|
135 |
-
|
|
|
|
|
|
|
|
|
|
|
136 |
with gr.Column(elem_id="col_container"):
|
137 |
with gr.Accordion("", open=False, visible=False):
|
138 |
system_msg = gr.Textbox(value="")
|
|
|
131 |
theme = gr.themes.Soft(primary_hue="zinc", secondary_hue="green", neutral_hue="blue",
|
132 |
text_size=gr.themes.sizes.text_sm)
|
133 |
|
134 |
+
with gr.Blocks(css="""
|
135 |
+
#col_container { margin-left: auto; margin-right: auto; background-color: #f0f0f0; }
|
136 |
+
#chatbot { height: 450px; overflow: auto; background-color: #ffffff; }
|
137 |
+
#chatbot .chat-message { border-bottom: 1px solid #e0e0e0; padding: 10px; }
|
138 |
+
#chatbot .chat-message.user { background-color: #e0ffe0; }
|
139 |
+
#chatbot .chat-message.assistant { background-color: #e0e0ff; }
|
140 |
+
""", theme=theme) as demo:
|
141 |
with gr.Column(elem_id="col_container"):
|
142 |
with gr.Accordion("", open=False, visible=False):
|
143 |
system_msg = gr.Textbox(value="")
|