Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ extract_path = "sample_evaluation"
|
|
33 |
unzip_file(zip_path, extract_path)
|
34 |
|
35 |
from huggingface_hub import hf_hub_download
|
36 |
-
hf_hub_download(repo_id="safinal/compositional-retrieval", filename="weights.pth", local_dir='.')
|
37 |
|
38 |
|
39 |
|
@@ -75,7 +75,7 @@ def process_single_query(model, query_image_path, query_text, database_embedding
|
|
75 |
|
76 |
# Get token classifier
|
77 |
token_classifier, token_classifier_tokenizer = load_token_classifier(
|
78 |
-
"safinal/compositional-retrieval-token-classifier",
|
79 |
device
|
80 |
)
|
81 |
|
|
|
33 |
unzip_file(zip_path, extract_path)
|
34 |
|
35 |
from huggingface_hub import hf_hub_download
|
36 |
+
hf_hub_download(repo_id="safinal/compositional-image-retrieval", filename="weights.pth", local_dir='.')
|
37 |
|
38 |
|
39 |
|
|
|
75 |
|
76 |
# Get token classifier
|
77 |
token_classifier, token_classifier_tokenizer = load_token_classifier(
|
78 |
+
"safinal/compositional-image-retrieval-token-classifier",
|
79 |
device
|
80 |
)
|
81 |
|