developer0hye commited on
Commit
263b9ed
·
verified ·
1 Parent(s): e9fe4ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
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
- input_image = gr.Image(label="Upload Image", type="filepath")
168
- text_input = gr.Textbox(label="Question")
169
- submit_btn = gr.Button("Submit")
170
- output_text = gr.Textbox(label="Model Output", elem_id="output_text")
 
 
 
 
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()