stalyn314 commited on
Commit
9b12ea1
·
verified ·
1 Parent(s): bf6140a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -95,13 +95,13 @@ with gr.Blocks() as demo:
95
  url_input = gr.Textbox(label="Image URL", placeholder="https://api.digitale-sammlungen.de/iiif/image/v2/bsb10483966_00008/full/500,/0/default.jpg")
96
 
97
  with gr.Tab("From Image"):
98
- image_input = gr.Gallery(type="numpy", label="Input Image")
99
 
100
  min_score = gr.Slider(minimum=0.0, maximum=1.0, value=0.5, label="Minimum score")
101
 
102
  model_name = gr.Radio(choices=[model["name"] for model in models], value=models[0]["name"], label="Select Detectron2 model")
103
 
104
- output_image = gr.Gallery(type="pil", label="Output")
105
 
106
  inference_button = gr.Button("Submit")
107
 
 
95
  url_input = gr.Textbox(label="Image URL", placeholder="https://api.digitale-sammlungen.de/iiif/image/v2/bsb10483966_00008/full/500,/0/default.jpg")
96
 
97
  with gr.Tab("From Image"):
98
+ image_input = gr.Image(type="numpy", label="Input Image")
99
 
100
  min_score = gr.Slider(minimum=0.0, maximum=1.0, value=0.5, label="Minimum score")
101
 
102
  model_name = gr.Radio(choices=[model["name"] for model in models], value=models[0]["name"], label="Select Detectron2 model")
103
 
104
+ output_image = gr.Image(type="pil", label="Output")
105
 
106
  inference_button = gr.Button("Submit")
107