Constrain chatbot height
Browse files- app.py +8 -0
- videos/tempfile.mp4 +2 -2
app.py
CHANGED
|
@@ -367,6 +367,14 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray}") as block:
|
|
| 367 |
|
| 368 |
with gr.Column(scale=0.75):
|
| 369 |
chatbot = gr.Chatbot()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 370 |
|
| 371 |
with gr.Row():
|
| 372 |
message = gr.Textbox(label="What's on your mind??",
|
|
|
|
| 367 |
|
| 368 |
with gr.Column(scale=0.75):
|
| 369 |
chatbot = gr.Chatbot()
|
| 370 |
+
# create a chatbot that uses CSS to have a fixed height of 400px
|
| 371 |
+
chatbot.css = """
|
| 372 |
+
.gradio-chatbot {
|
| 373 |
+
height: 400px;
|
| 374 |
+
}
|
| 375 |
+
"""
|
| 376 |
+
|
| 377 |
+
|
| 378 |
|
| 379 |
with gr.Row():
|
| 380 |
message = gr.Textbox(label="What's on your mind??",
|
videos/tempfile.mp4
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:80aa42c48e322cc8da957e8d2e2aba7f1cd5675abb998146facf83a279a1c07d
|
| 3 |
+
size 80784
|