Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|