Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -164,13 +164,16 @@ with gr.Blocks(css=css, theme="origin") as demo:
|
|
164 |
gr.Markdown(DESCRIPTION)
|
165 |
|
166 |
with gr.Row():
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
|
|
|
|
|
|
|
|
171 |
|
172 |
submit_btn.click(internvl_inference, [input_image, text_input], [output_text])
|
173 |
|
174 |
-
|
175 |
if __name__ == "__main__":
|
176 |
demo.launch()
|
|
|
164 |
gr.Markdown(DESCRIPTION)
|
165 |
|
166 |
with gr.Row():
|
167 |
+
# Left column: image, question, submit button (stacked vertically)
|
168 |
+
with gr.Column(scale=1):
|
169 |
+
input_image = gr.Image(label="Upload Image", type="filepath")
|
170 |
+
text_input = gr.Textbox(label="Question")
|
171 |
+
submit_btn = gr.Button("Submit")
|
172 |
+
# Right column: model output
|
173 |
+
with gr.Column(scale=1):
|
174 |
+
output_text = gr.Textbox(label="Model Output", elem_id="output_text")
|
175 |
|
176 |
submit_btn.click(internvl_inference, [input_image, text_input], [output_text])
|
177 |
|
|
|
178 |
if __name__ == "__main__":
|
179 |
demo.launch()
|