Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,9 @@ def detect_ellipses(img_path):
|
|
40 |
aamed.setParameters(3.1415926/3, 3.4, 0.77)
|
41 |
|
42 |
result = aamed.run_AAMED(imgG)
|
|
|
43 |
result = result.replace(' ', ', ')
|
|
|
44 |
result = json.loads(result)
|
45 |
print(result)
|
46 |
|
@@ -60,4 +62,8 @@ gr.Interface(
|
|
60 |
title=title,
|
61 |
examples=examples,
|
62 |
allow_flagging='never'
|
63 |
-
).launch(
|
|
|
|
|
|
|
|
|
|
40 |
aamed.setParameters(3.1415926/3, 3.4, 0.77)
|
41 |
|
42 |
result = aamed.run_AAMED(imgG)
|
43 |
+
print(result)
|
44 |
result = result.replace(' ', ', ')
|
45 |
+
print(result)
|
46 |
result = json.loads(result)
|
47 |
print(result)
|
48 |
|
|
|
62 |
title=title,
|
63 |
examples=examples,
|
64 |
allow_flagging='never'
|
65 |
+
).launch(
|
66 |
+
debug=True,
|
67 |
+
server_name="0.0.0.0",
|
68 |
+
server_port=7860
|
69 |
+
)
|