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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -243,7 +243,7 @@ transform = T.Compose([
243
  T.ToTensor(),
244
  ])
245
 
246
- def predict(image):
247
  # Preprocess the image
248
  img_tensor = transform(image).unsqueeze(0) # Add batch dimension
249
 
@@ -254,6 +254,7 @@ def predict(image):
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
 
 
243
  T.ToTensor(),
244
  ])
245
 
246
+ def predict(image):
247
  # Preprocess the image
248
  img_tensor = transform(image).unsqueeze(0) # Add batch dimension
249
 
 
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
+ print(type(results))
258
  annotated_img = results.plot()
259
  return annotated_img
260