Adityak204 commited on
Commit
b555f64
·
1 Parent(s): 6fae1ea

Return raw predictions

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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 {k: f"{v:.2%}" for k, v in predictions.items()}
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}