josedolot commited on
Commit
ab714f3
·
1 Parent(s): 0a9682f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
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
- basewidth = 1280
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