zy5830850 commited on
Commit
e53061b
1 Parent(s): 4cc8229
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -130,7 +130,6 @@ with gr.Blocks() as demo:
130
  (", however, has improved since ___ through ___.", None),
131
  ]
132
  )
133
- input_text = gr.Textbox(label="Input Text", interactive=False)
134
  # bbox = gr.Dataframe(
135
  # headers=["x", "y", "w", "h"],
136
  # datatype=["number", "number", "number", "number"],
@@ -141,7 +140,9 @@ with gr.Blocks() as demo:
141
  # clear_btn = gr.Button("Clear")
142
  # run_btn = gr.Button("Run")
143
  # output = gr.Image(type="pil", label="Grounding Results", interactive=False).style(height=500)
144
- output = gr.Image(type="pil", value="./images/649af982-e3af4e3a-75013d30-cdc71514-a34738fd.jpg", label="Grounding Results", interactive=False, height=500)
 
 
145
  hl_text.select(get_new_result, inputs=[input_image], outputs=[input_text, output])
146
  # run_btn.click(fn=inference, inputs=[input_image, input_text], outputs=output)
147
  # clear_btn.click(fn=clear, outputs=input_text)
 
130
  (", however, has improved since ___ through ___.", None),
131
  ]
132
  )
 
133
  # bbox = gr.Dataframe(
134
  # headers=["x", "y", "w", "h"],
135
  # datatype=["number", "number", "number", "number"],
 
140
  # clear_btn = gr.Button("Clear")
141
  # run_btn = gr.Button("Run")
142
  # output = gr.Image(type="pil", label="Grounding Results", interactive=False).style(height=500)
143
+ with gr.Column(scale=1, min_width=300):
144
+ output = gr.Image(type="pil", value="./images/649af982-e3af4e3a-75013d30-cdc71514-a34738fd.jpg", label="Grounding Results", interactive=False, height=500)
145
+ input_text = gr.Textbox(label="Input Text", interactive=False)
146
  hl_text.select(get_new_result, inputs=[input_image], outputs=[input_text, output])
147
  # run_btn.click(fn=inference, inputs=[input_image, input_text], outputs=output)
148
  # clear_btn.click(fn=clear, outputs=input_text)