Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,9 +20,14 @@ def detect_ellipses(img_path):
|
|
| 20 |
|
| 21 |
return img_path
|
| 22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
gr.Interface(
|
| 24 |
fn=detect_ellipses,
|
| 25 |
inputs=gr.Image(label="Upload image with ellipses", type="filepath"),
|
| 26 |
outputs=gr.Image(type="filepath", label="Detected ellipses"),
|
| 27 |
title=title,
|
|
|
|
| 28 |
).launch()
|
|
|
|
| 20 |
|
| 21 |
return img_path
|
| 22 |
|
| 23 |
+
examples = [
|
| 24 |
+
["./AAMED/python/002_0038.jpg"]
|
| 25 |
+
]
|
| 26 |
+
|
| 27 |
gr.Interface(
|
| 28 |
fn=detect_ellipses,
|
| 29 |
inputs=gr.Image(label="Upload image with ellipses", type="filepath"),
|
| 30 |
outputs=gr.Image(type="filepath", label="Detected ellipses"),
|
| 31 |
title=title,
|
| 32 |
+
examples=examples
|
| 33 |
).launch()
|