Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,10 +15,10 @@ def detect_ellipses(img_path):
|
|
15 |
aamed = pyAAMED(600, 600)
|
16 |
|
17 |
aamed.setParameters(3.1415926/3, 3.4, 0.77)
|
18 |
-
|
19 |
-
print(
|
20 |
|
21 |
-
return img_path
|
22 |
|
23 |
examples = [
|
24 |
["./AAMED/python/002_0038.jpg"]
|
@@ -27,7 +27,10 @@ examples = [
|
|
27 |
gr.Interface(
|
28 |
fn=detect_ellipses,
|
29 |
inputs=gr.Image(label="Upload image with ellipses", type="filepath"),
|
30 |
-
outputs=
|
|
|
|
|
|
|
31 |
title=title,
|
32 |
examples=examples,
|
33 |
allow_flagging='never'
|
|
|
15 |
aamed = pyAAMED(600, 600)
|
16 |
|
17 |
aamed.setParameters(3.1415926/3, 3.4, 0.77)
|
18 |
+
result = aamed.run_AAMED(imgG)
|
19 |
+
print(result)
|
20 |
|
21 |
+
return [img_path, result]
|
22 |
|
23 |
examples = [
|
24 |
["./AAMED/python/002_0038.jpg"]
|
|
|
27 |
gr.Interface(
|
28 |
fn=detect_ellipses,
|
29 |
inputs=gr.Image(label="Upload image with ellipses", type="filepath"),
|
30 |
+
outputs=[
|
31 |
+
gr.Image(type="filepath", label="Detected ellipses"),
|
32 |
+
gr.Text(label="Detected data")
|
33 |
+
]
|
34 |
title=title,
|
35 |
examples=examples,
|
36 |
allow_flagging='never'
|