Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -42,12 +42,13 @@ def detect_ellipses(img_path):
|
|
42 |
|
43 |
result = aamed.run_AAMED(imgG)
|
44 |
print(result)
|
45 |
-
|
46 |
-
|
|
|
47 |
result = json.loads(result)
|
48 |
print(result)
|
49 |
|
50 |
-
return [
|
51 |
|
52 |
examples = [
|
53 |
["./AAMED/python/002_0038.jpg"]
|
|
|
42 |
|
43 |
result = aamed.run_AAMED(imgG)
|
44 |
print(result)
|
45 |
+
if result != "":
|
46 |
+
result = ",".join(filter(lambda s: s != "", result.split(" ")))
|
47 |
+
print(result)
|
48 |
result = json.loads(result)
|
49 |
print(result)
|
50 |
|
51 |
+
return [Image.fromarray(imgG), json.dumps(result)]
|
52 |
|
53 |
examples = [
|
54 |
["./AAMED/python/002_0038.jpg"]
|