Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Fix y-axis overflow in gr.Chatbot
Browse files
app.py
CHANGED
@@ -111,6 +111,15 @@ custom_css = """
|
|
111 |
100% { background-color: rgba(46, 204, 113, 1); } /* Green at full opacity */
|
112 |
}
|
113 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
114 |
.logo-container {
|
115 |
display: flex;
|
116 |
flex-direction: column;
|
@@ -649,6 +658,7 @@ with gr.Blocks(theme=theme, css=custom_css, js=custom_js) as demo:
|
|
649 |
stop_btn = gr.Button("Stop the agent!")
|
650 |
|
651 |
chatbot_display = gr.Chatbot(
|
|
|
652 |
label="Agent's execution logs",
|
653 |
type="messages",
|
654 |
avatar_images=(
|
|
|
111 |
100% { background-color: rgba(46, 204, 113, 1); } /* Green at full opacity */
|
112 |
}
|
113 |
|
114 |
+
#chatbot {
|
115 |
+
height:800px;
|
116 |
+
flex-grow: 1;
|
117 |
+
overflow:visible!important;
|
118 |
+
}
|
119 |
+
#chatbot .role {
|
120 |
+
max-with:95%
|
121 |
+
}
|
122 |
+
|
123 |
.logo-container {
|
124 |
display: flex;
|
125 |
flex-direction: column;
|
|
|
658 |
stop_btn = gr.Button("Stop the agent!")
|
659 |
|
660 |
chatbot_display = gr.Chatbot(
|
661 |
+
elem_id="chatbot",
|
662 |
label="Agent's execution logs",
|
663 |
type="messages",
|
664 |
avatar_images=(
|