Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,9 +15,9 @@ from get_similiarty import get_similiarity
|
|
15 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
16 |
|
17 |
#load model -resnet50
|
18 |
-
model_resnet =
|
19 |
#load model - ViT-B/32
|
20 |
-
model_vit =
|
21 |
|
22 |
#Распаковка ZIP-файла с фотографиями
|
23 |
zip_file_path = "sample.zip"
|
|
|
15 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
16 |
|
17 |
#load model -resnet50
|
18 |
+
model_resnet, prerocess = clip.load("RN50", device=device)
|
19 |
#load model - ViT-B/32
|
20 |
+
model_vit, preprocess = clip.load('ViT-B/32', device)
|
21 |
|
22 |
#Распаковка ZIP-файла с фотографиями
|
23 |
zip_file_path = "sample.zip"
|