Spaces:
Runtime error
Runtime error
Commit
·
e0ebe21
1
Parent(s):
50a6ee6
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,6 @@ def infer(image=None):
|
|
28 |
return [None,'Error: No image provided']
|
29 |
|
30 |
image = resize_image(image, 1200)
|
31 |
-
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
|
32 |
prediction = deployment.infer(image)
|
33 |
output = show_image_with_annotation_scene(image, prediction, show_results=False)
|
34 |
return [output, prediction.overview]
|
|
|
28 |
return [None,'Error: No image provided']
|
29 |
|
30 |
image = resize_image(image, 1200)
|
|
|
31 |
prediction = deployment.infer(image)
|
32 |
output = show_image_with_annotation_scene(image, prediction, show_results=False)
|
33 |
return [output, prediction.overview]
|