aje6 commited on
Commit
32fbb84
·
verified ·
1 Parent(s): 23b2fb0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -253,8 +253,8 @@ def predict(image):
253
 
254
  # Process output (adjust based on your model's format)
255
  # return output # or post-process the results as needed
256
- results = model(image, save=True)
257
- annotated_img = Image.open("B111.JPG")
258
  return annotated_img
259
 
260
  # Gradio interface
 
253
 
254
  # Process output (adjust based on your model's format)
255
  # return output # or post-process the results as needed
256
+ results = model(image)
257
+ annotated_img = results.plot()
258
  return annotated_img
259
 
260
  # Gradio interface