Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -80,6 +80,10 @@ def detect_objects_in_image(image):
|
|
| 80 |
mask = pred[:, 4] > conf_thres
|
| 81 |
pred = pred[mask]
|
| 82 |
print("passed5")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
if len(pred) == 0:
|
| 84 |
return Image.fromarray(np.array(image)), None # Return only image and None for graph
|
| 85 |
print("passed6")
|
|
|
|
| 80 |
mask = pred[:, 4] > conf_thres
|
| 81 |
pred = pred[mask]
|
| 82 |
print("passed5")
|
| 83 |
+
print(len(pred))
|
| 84 |
+
print(Image.fromarray(np.array(image)))
|
| 85 |
+
print(np.array(image))
|
| 86 |
+
print(type(image))
|
| 87 |
if len(pred) == 0:
|
| 88 |
return Image.fromarray(np.array(image)), None # Return only image and None for graph
|
| 89 |
print("passed6")
|