Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def gradio_wrapper(img):
|
|
20 |
global model
|
21 |
#print(np.shape(img))
|
22 |
results = model.predict(img) # predict on an image
|
23 |
-
print(results)
|
24 |
|
25 |
return cv2.putText(img, str(results[0]),(00, 185), cv2.FONT_HERSHEY_SIMPLEX, 1,
|
26 |
(0, 0, 255), 2, cv2.LINE_AA, False)
|
|
|
20 |
global model
|
21 |
#print(np.shape(img))
|
22 |
results = model.predict(img) # predict on an image
|
23 |
+
print(results['labels'].cpu().numpy().tolist())
|
24 |
|
25 |
return cv2.putText(img, str(results[0]),(00, 185), cv2.FONT_HERSHEY_SIMPLEX, 1,
|
26 |
(0, 0, 255), 2, cv2.LINE_AA, False)
|