Update app.py
Browse files
app.py
CHANGED
@@ -106,8 +106,8 @@ def predict(image):
|
|
106 |
"front": front_result,
|
107 |
"back": back_result
|
108 |
}
|
109 |
-
|
110 |
-
return
|
111 |
|
112 |
# ---------------- Gradio Interface ---------------- #
|
113 |
iface = gr.Interface(
|
|
|
106 |
"front": front_result,
|
107 |
"back": back_result
|
108 |
}
|
109 |
+
single_image = cropped_images.get("front") or cropped_images.get("back") or detected_image
|
110 |
+
return single_image, labels, api_results
|
111 |
|
112 |
# ---------------- Gradio Interface ---------------- #
|
113 |
iface = gr.Interface(
|