Spaces:
Runtime error
Runtime error
update column width
Browse files
app.py
CHANGED
|
@@ -84,7 +84,7 @@ def predict(btn_upload, counter,image_hid, input, history):
|
|
| 84 |
#Blocks Layout
|
| 85 |
with gr.Blocks() as demo: #css="#chatbot-component .overflow-y-auto{height:500px}"
|
| 86 |
with gr.Row():
|
| 87 |
-
with gr.Column():
|
| 88 |
#with gr.Accordion("See details"):
|
| 89 |
gr.HTML("""<div style="text-align: center; max-width: 700px; margin: 0 auto;">
|
| 90 |
<div
|
|
@@ -109,10 +109,10 @@ with gr.Blocks() as demo: #css="#chatbot-component .overflow-y-auto{height:500p
|
|
| 109 |
by Junnan Li, Dongxu Li, Silvio Savarese, Steven Hoi.<br><br>
|
| 110 |
</p></div>""")
|
| 111 |
|
| 112 |
-
with gr.Column(elem_id = "column_container"):
|
| 113 |
#text_in = gr.Textbox(value='', placeholder="Type your questions here and press enter", elem_id = "input_prompt", visible=False, label='Great! Now you can ask questions to get more information about the image')
|
| 114 |
btn_upload = gr.UploadButton("Upload image!", file_types=["image"], file_count="single", elem_id="upload_button")
|
| 115 |
-
chatbot = gr.Chatbot(elem_id = 'chatbot-component', label='
|
| 116 |
text_in = gr.Textbox(value='', placeholder="Type your questions here and press enter", elem_id = "input_prompt", visible=False, label='Great! Now you can ask questions to get more information about the image')
|
| 117 |
state_in = gr.State()
|
| 118 |
counter_out = gr.Number(visible=False, value=0, precision=0)
|
|
|
|
| 84 |
#Blocks Layout
|
| 85 |
with gr.Blocks() as demo: #css="#chatbot-component .overflow-y-auto{height:500px}"
|
| 86 |
with gr.Row():
|
| 87 |
+
with gr.Column(scale=1):
|
| 88 |
#with gr.Accordion("See details"):
|
| 89 |
gr.HTML("""<div style="text-align: center; max-width: 700px; margin: 0 auto;">
|
| 90 |
<div
|
|
|
|
| 109 |
by Junnan Li, Dongxu Li, Silvio Savarese, Steven Hoi.<br><br>
|
| 110 |
</p></div>""")
|
| 111 |
|
| 112 |
+
with gr.Column(elem_id = "column_container", scale=2):
|
| 113 |
#text_in = gr.Textbox(value='', placeholder="Type your questions here and press enter", elem_id = "input_prompt", visible=False, label='Great! Now you can ask questions to get more information about the image')
|
| 114 |
btn_upload = gr.UploadButton("Upload image!", file_types=["image"], file_count="single", elem_id="upload_button")
|
| 115 |
+
chatbot = gr.Chatbot(elem_id = 'chatbot-component', label='Converse with Images')
|
| 116 |
text_in = gr.Textbox(value='', placeholder="Type your questions here and press enter", elem_id = "input_prompt", visible=False, label='Great! Now you can ask questions to get more information about the image')
|
| 117 |
state_in = gr.State()
|
| 118 |
counter_out = gr.Number(visible=False, value=0, precision=0)
|