Don't constrain chatbot height
Browse files
app.py
CHANGED
|
@@ -354,20 +354,19 @@ with gr.Blocks(css=".gradio-container {background-color: lightgray} ") as block:
|
|
| 354 |
show_label=False, lines=1, type='password')
|
| 355 |
|
| 356 |
with gr.Row():
|
| 357 |
-
|
| 358 |
-
|
| 359 |
-
|
| 360 |
-
|
| 361 |
-
|
| 362 |
-
|
| 363 |
-
|
| 364 |
-
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
chatbot = gr.Chatbot()
|
| 371 |
|
| 372 |
with gr.Row():
|
| 373 |
message = gr.Textbox(label="What's on your mind??",
|
|
|
|
| 354 |
show_label=False, lines=1, type='password')
|
| 355 |
|
| 356 |
with gr.Row():
|
| 357 |
+
with gr.Column(scale=1, min_width=240):
|
| 358 |
+
my_file = gr.File(label="Upload a file", type="file", visible=False)
|
| 359 |
+
tmp_file = gr.File("videos/Masahiro.mp4", visible=False)
|
| 360 |
+
tmp_file_url = "/file=" + tmp_file.value['name']
|
| 361 |
+
htm_video = f'<video width="256" height="256" autoplay muted loop><source src={tmp_file_url} type="video/mp4" poster="Masahiro.png"></video>'
|
| 362 |
+
video_html = gr.HTML(htm_video)
|
| 363 |
+
|
| 364 |
+
trace_chain_cb = gr.Checkbox(label="Show chain", value=False)
|
| 365 |
+
trace_chain_cb.change(update_foo, inputs=[trace_chain_cb, trace_chain_state],
|
| 366 |
+
outputs=[trace_chain_state])
|
| 367 |
+
|
| 368 |
+
with gr.Column(scale=3):
|
| 369 |
+
chatbot = gr.Chatbot()
|
|
|
|
| 370 |
|
| 371 |
with gr.Row():
|
| 372 |
message = gr.Textbox(label="What's on your mind??",
|