LPX55 commited on
Commit
dc85758
·
verified ·
1 Parent(s): bd23e86

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -157,8 +157,8 @@ def predict_image(img, confidence_threshold):
157
  label_4 = f"Error: {str(e)}"
158
 
159
  try:
160
- img_bytes = convert_pil_to_bytes(img_pil)
161
- response5_raw = call_inference(img_bytes)
162
  print(response5_raw)
163
  response5 = response5_raw
164
 
 
157
  label_4 = f"Error: {str(e)}"
158
 
159
  try:
160
+ #img_bytes = convert_pil_to_bytes(img_pil)
161
+ response5_raw = call_inference(img_pill.path)
162
  print(response5_raw)
163
  response5 = response5_raw
164