adpro commited on
Commit
472ce7f
·
verified ·
1 Parent(s): bfc58a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -23,10 +23,7 @@ def process_image(image_path):
23
  last_time = time.time()
24
  image_raw = Image.open(Path(image_path))
25
 
26
- image = image_raw.resize(
27
- (1280, int(1280 * image_raw.size[1] / image_raw.size[0])),
28
- Image.Resampling.LANCZOS,
29
- )
30
 
31
  # prepare image for the model
32
  encoding = feature_extractor(image, return_tensors="pt")
 
23
  last_time = time.time()
24
  image_raw = Image.open(Path(image_path))
25
 
26
+ image = image_raw
 
 
 
27
 
28
  # prepare image for the model
29
  encoding = feature_extractor(image, return_tensors="pt")