hlydecker commited on
Commit
21059a2
1 Parent(s): f144b5f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -10,6 +10,7 @@ from PIL import Image
10
  models = ["model_weights/md_v5a.0.0.pt","model_weights/md_v5b.0.0.pt"]
11
 
12
  def yolo(image, chosen_model, size):
 
13
  g = (size / max(im.size)) # gain
14
  im = im.resize((int(x * g) for x in im.size), Image.ANTIALIAS) # resize
15
 
 
10
  models = ["model_weights/md_v5a.0.0.pt","model_weights/md_v5b.0.0.pt"]
11
 
12
  def yolo(image, chosen_model, size):
13
+ im = image
14
  g = (size / max(im.size)) # gain
15
  im = im.resize((int(x * g) for x in im.size), Image.ANTIALIAS) # resize
16