JosephTK commited on
Commit
64377f8
1 Parent(s): 63cd666

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,8 +24,8 @@ WIDTH = 640
24
 
25
  def detect(image):
26
  width, height = image.size
27
- ratio = float(WIDTH) / float(w)
28
- new_h = h * ratio
29
 
30
  image = image.resize((WIDTH, new_h), Image.Resampling.LANCZOS)
31
 
 
24
 
25
  def detect(image):
26
  width, height = image.size
27
+ ratio = float(WIDTH) / float(width)
28
+ new_h = height * ratio
29
 
30
  image = image.resize((WIDTH, new_h), Image.Resampling.LANCZOS)
31