Spaces:
Sleeping
Sleeping
Adityak204
commited on
Commit
·
b555f64
1
Parent(s):
6fae1ea
Return raw predictions
Browse files
app.py
CHANGED
@@ -138,7 +138,7 @@ def predict_image(image):
|
|
138 |
try:
|
139 |
predictions = predictor.predict(image)
|
140 |
# Format results for display
|
141 |
-
return
|
142 |
except Exception as e:
|
143 |
print(f"Error in predict_image: {str(e)}")
|
144 |
return {"Error: Failed to process image": 1.0}
|
|
|
138 |
try:
|
139 |
predictions = predictor.predict(image)
|
140 |
# Format results for display
|
141 |
+
return predictions
|
142 |
except Exception as e:
|
143 |
print(f"Error in predict_image: {str(e)}")
|
144 |
return {"Error: Failed to process image": 1.0}
|