Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -180,7 +180,7 @@ def detect(img):
|
|
180 |
|
181 |
print(f'Done. ({time.time() - t0:.3f}s)')
|
182 |
|
183 |
-
return Image.fromarray(im0)
|
184 |
|
185 |
with torch.no_grad():
|
186 |
if opt.update: # update all models (to fix SourceChangeWarning)
|
|
|
180 |
|
181 |
print(f'Done. ({time.time() - t0:.3f}s)')
|
182 |
|
183 |
+
return Image.fromarray(im0[:,:,::-1])
|
184 |
|
185 |
with torch.no_grad():
|
186 |
if opt.update: # update all models (to fix SourceChangeWarning)
|