pg56714 commited on
Commit
45a771e
·
verified ·
1 Parent(s): 7415b0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -13
app.py CHANGED
@@ -146,20 +146,21 @@ with_confidence_component = gr.Checkbox(
146
  with gr.Blocks() as demo:
147
  gr.Markdown(MARKDOWN)
148
  with gr.Row():
149
- with gr.Column():
150
- input_image_component = gr.Image(type="numpy", label="Input Image")
151
- image_categories_text_component = gr.Textbox(
152
- placeholder="you can input multiple words with comma (,)",
153
- )
154
-
155
- with gr.Accordion("Configuration", open=False):
156
- confidence_threshold_component.render()
157
- iou_threshold_component.render()
158
- with gr.Row():
159
- with_confidence_component.render()
160
-
161
  yolo_world_output_image_component = gr.Image(type="numpy", label="Output image")
162
- submit_button_component = gr.Button(value="Submit", scale=1, variant="primary")
 
 
 
 
 
 
 
 
 
 
 
 
163
  gr.Examples(
164
  # fn=process_image,
165
  examples=[
 
146
  with gr.Blocks() as demo:
147
  gr.Markdown(MARKDOWN)
148
  with gr.Row():
149
+ input_image_component = gr.Image(type="numpy", label="Input Image")
 
 
 
 
 
 
 
 
 
 
 
150
  yolo_world_output_image_component = gr.Image(type="numpy", label="Output image")
151
+ with gr.Row():
152
+ image_categories_text_component = gr.Textbox(
153
+ label="Categories",
154
+ placeholder="you can input multiple words with comma (,)",
155
+ scale=7,
156
+ )
157
+ submit_button_component = gr.Button(value="Submit", scale=1, variant="primary")
158
+
159
+ with gr.Accordion("Configuration", open=False):
160
+ confidence_threshold_component.render()
161
+ iou_threshold_component.render()
162
+ with gr.Row():
163
+ with_confidence_component.render()
164
  gr.Examples(
165
  # fn=process_image,
166
  examples=[