Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,10 +8,7 @@ os.system('curl -L -o weights/hybridnets.pth https://github.com/datvuthanh/Hybri
|
|
8 |
|
9 |
def inference(img):
|
10 |
|
11 |
-
|
12 |
-
wpercent = (basewidth/float(img.size[0]))
|
13 |
-
hsize = int((float(img.size[1])*float(wpercent)))
|
14 |
-
img = img.resize((basewidth,hsize), Image.ANTIALIAS)
|
15 |
|
16 |
img.save("demo/image/1.jpg", "JPEG")
|
17 |
|
|
|
8 |
|
9 |
def inference(img):
|
10 |
|
11 |
+
img = img.resize((1280,720))
|
|
|
|
|
|
|
12 |
|
13 |
img.save("demo/image/1.jpg", "JPEG")
|
14 |
|