fjenett commited on
Commit
bd6297f
1 Parent(s): ba5ed06

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -4
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
- res = aamed.run_AAMED(imgG)
19
- print(res)
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=gr.Image(type="filepath", label="Detected ellipses"),
 
 
 
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'