Spaces:
Runtime error
Runtime error
sshi
commited on
Commit
·
ff116e7
1
Parent(s):
88c51e4
App bug fix.
Browse files
app.py
CHANGED
@@ -115,7 +115,7 @@ def plot_results(pil_img, prob, boxes):
|
|
115 |
# fill=c)
|
116 |
# ax.text(xmin, ymin, text, fontsize=10,
|
117 |
# bbox=dict(facecolor=c, alpha=0.5))
|
118 |
-
return
|
119 |
# return fig
|
120 |
|
121 |
|
|
|
115 |
# fill=c)
|
116 |
# ax.text(xmin, ymin, text, fontsize=10,
|
117 |
# bbox=dict(facecolor=c, alpha=0.5))
|
118 |
+
return Image.fromarray(img[:,:,::-1])
|
119 |
# return fig
|
120 |
|
121 |
|