Spaces:
Runtime error
Runtime error
update layout
Browse files
app.py
CHANGED
@@ -113,8 +113,8 @@ with gr.Blocks(css="#chatbot-component {height: 600px} #input_prompt {position:
|
|
113 |
with gr.Column(elem_id = "column_container", scale=2):
|
114 |
#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')
|
115 |
btn_upload = gr.UploadButton("Upload image!", file_types=["image"], file_count="single", elem_id="upload_button")
|
116 |
-
chatbot = gr.Chatbot(elem_id = 'chatbot-component', label='Converse with Images')
|
117 |
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')
|
|
|
118 |
state_in = gr.State()
|
119 |
counter_out = gr.Number(visible=False, value=0, precision=0)
|
120 |
text_out = gr.Textbox(visible=False) #getting image name out
|
|
|
113 |
with gr.Column(elem_id = "column_container", scale=2):
|
114 |
#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')
|
115 |
btn_upload = gr.UploadButton("Upload image!", file_types=["image"], file_count="single", elem_id="upload_button")
|
|
|
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 |
+
chatbot = gr.Chatbot(elem_id = 'chatbot-component', label='Converse with Images')
|
118 |
state_in = gr.State()
|
119 |
counter_out = gr.Number(visible=False, value=0, precision=0)
|
120 |
text_out = gr.Textbox(visible=False) #getting image name out
|