Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def read_image_from_url(url):
|
|
28 |
img = Image.open(BytesIO(response.content)).convert("RGB")
|
29 |
return img
|
30 |
|
31 |
-
|
32 |
def extract_features_siglip(image):
|
33 |
with torch.no_grad():
|
34 |
inputs = processor(images=image, return_tensors="pt").to(device)
|
|
|
28 |
img = Image.open(BytesIO(response.content)).convert("RGB")
|
29 |
return img
|
30 |
|
31 |
+
#@spaces.GPU
|
32 |
def extract_features_siglip(image):
|
33 |
with torch.no_grad():
|
34 |
inputs = processor(images=image, return_tensors="pt").to(device)
|