Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -121,7 +121,10 @@ def classify(image):
|
|
121 |
|
122 |
# Print the formatted time
|
123 |
print(f"{formatted_time} {sorted_result}")
|
124 |
-
return
|
|
|
|
|
|
|
125 |
|
126 |
|
127 |
title = "🐢"
|
@@ -131,5 +134,4 @@ gr.Interface(
|
|
131 |
inputs=gr.Image(type="pil", label="Input Image"),
|
132 |
outputs=[gr.JSON()],
|
133 |
title=title,
|
134 |
-
debug=True
|
135 |
).launch()
|
|
|
121 |
|
122 |
# Print the formatted time
|
123 |
print(f"{formatted_time} {sorted_result}")
|
124 |
+
return {
|
125 |
+
"detection": detection,
|
126 |
+
"classification": sorted_result
|
127 |
+
}
|
128 |
|
129 |
|
130 |
title = "🐢"
|
|
|
134 |
inputs=gr.Image(type="pil", label="Input Image"),
|
135 |
outputs=[gr.JSON()],
|
136 |
title=title,
|
|
|
137 |
).launch()
|