fjenett commited on
Commit
4d327e3
1 Parent(s): b04e88b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -18,11 +18,11 @@ def detect_ellipses(img_path):
18
  res = aamed.run_AAMED(imgG)
19
  print(res)
20
 
21
- return img
22
 
23
  gr.Interface(
24
- detect_ellipses,
25
- inputs=gr.inputs.Image(label="Upload image with ellipses", type="filepath"),
26
- outputs=gr.outputs.Image(label="Detected ellipses"),
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()