Let the chat area fill the available height
Browse files
app.py
CHANGED
|
@@ -65,7 +65,15 @@ with gr.Blocks(fill_height=True, fill_width=True) as demo:
|
|
| 65 |
"**After the fix**: the chart stays put and the view stays pinned to the bottom."
|
| 66 |
)
|
| 67 |
|
| 68 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
with gr.Group():
|
| 71 |
with gr.Row():
|
|
|
|
| 65 |
"**After the fix**: the chart stays put and the view stays pinned to the bottom."
|
| 66 |
)
|
| 67 |
|
| 68 |
+
# scale + fill_height is what lets the chat area grow; height alone would pin it
|
| 69 |
+
# to 200px and the 600px bokeh chart would barely fit in the viewport.
|
| 70 |
+
chatbot = gr.Chatbot(
|
| 71 |
+
label="Chatbot",
|
| 72 |
+
elem_id="chatbot",
|
| 73 |
+
scale=5,
|
| 74 |
+
height=200,
|
| 75 |
+
min_width=200,
|
| 76 |
+
)
|
| 77 |
|
| 78 |
with gr.Group():
|
| 79 |
with gr.Row():
|