aje6 commited on
Commit
f455cfd
·
verified ·
1 Parent(s): 7588735

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -233,9 +233,10 @@ def predict(image):
233
  output = model(img_tensor)
234
 
235
  # Process output (adjust based on your model's format)
236
- return output # or post-process the results as needed
237
- # annotated_img = output.render()[0]
238
- # return annotated_img
 
239
 
240
  # Gradio interface
241
  demo = gr.Interface(
 
233
  output = model(img_tensor)
234
 
235
  # Process output (adjust based on your model's format)
236
+ # return output # or post-process the results as needed
237
+ results = model(img)
238
+ annotated_img = results.render()[0]
239
+ return annotated_img
240
 
241
  # Gradio interface
242
  demo = gr.Interface(