Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -256,7 +256,7 @@ def predict(image):
|
|
256 |
results = model(image)
|
257 |
print(type(results))
|
258 |
print(results)
|
259 |
-
annotated_img = results.plot()
|
260 |
return annotated_img
|
261 |
|
262 |
# Gradio interface
|
|
|
256 |
results = model(image)
|
257 |
print(type(results))
|
258 |
print(results)
|
259 |
+
annotated_img = results[0].plot()
|
260 |
return annotated_img
|
261 |
|
262 |
# Gradio interface
|