princeml commited on
Commit
1aee648
·
1 Parent(s): c570a4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ model = YOLO("best.pt") # load a custom model
19
  def gradio_wrapper(img):
20
  global model
21
  #print(np.shape(img))
22
- results = model.predict(img)
23
  return results[0]
24
  demo = gr.Interface(
25
  gradio_wrapper,
 
19
  def gradio_wrapper(img):
20
  global model
21
  #print(np.shape(img))
22
+ results = model(img) # predict on an image
23
  return results[0]
24
  demo = gr.Interface(
25
  gradio_wrapper,