Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -39,12 +39,12 @@ title = "YOLOv5 - Medieval Register Segmentation"
|
|
| 39 |
# ['', 0.50]]
|
| 40 |
|
| 41 |
inputs = [gr.Image(type="pil", label="document image"),
|
| 42 |
-
gr.inputs.Dropdown(model_names, label="Model"
|
| 43 |
gr.Slider(maximum=1, step=0.01, value=0.50)]
|
| 44 |
|
| 45 |
demo=gr.Interface(fn=yolo_inference,
|
| 46 |
inputs=inputs,
|
| 47 |
-
outputs=gr.Image(type="pil", label="annotated document").style(height=
|
| 48 |
title=title,
|
| 49 |
#examples=examples,
|
| 50 |
theme="huggingface")
|
|
|
|
| 39 |
# ['', 0.50]]
|
| 40 |
|
| 41 |
inputs = [gr.Image(type="pil", label="document image"),
|
| 42 |
+
gr.inputs.Dropdown(model_names, label="Model"),
|
| 43 |
gr.Slider(maximum=1, step=0.01, value=0.50)]
|
| 44 |
|
| 45 |
demo=gr.Interface(fn=yolo_inference,
|
| 46 |
inputs=inputs,
|
| 47 |
+
outputs=gr.Image(type="pil", label="annotated document").style(height=800),
|
| 48 |
title=title,
|
| 49 |
#examples=examples,
|
| 50 |
theme="huggingface")
|