Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -18,11 +18,11 @@ def detect_ellipses(img_path):
|
|
18 |
res = aamed.run_AAMED(imgG)
|
19 |
print(res)
|
20 |
|
21 |
-
return
|
22 |
|
23 |
gr.Interface(
|
24 |
-
detect_ellipses,
|
25 |
-
inputs=gr.
|
26 |
-
outputs=gr.
|
27 |
title=title,
|
28 |
).launch()
|
|
|
18 |
res = aamed.run_AAMED(imgG)
|
19 |
print(res)
|
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()
|