Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
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.
|
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 |
|