Spaces:
Running
Running
Update app.py
Browse files
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
|
| 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")
|