JLW commited on
Commit
b84f999
·
1 Parent(s): ab4071d

Constrain chatbot height

Browse files
Files changed (2) hide show
  1. app.py +8 -0
  2. 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:03846a675c8487597032ee227e4d1b6c8aa52391cbbf7474a994dc5b960c4443
3
- size 185265
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:80aa42c48e322cc8da957e8d2e2aba7f1cd5675abb998146facf83a279a1c07d
3
+ size 80784