Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -72,8 +72,8 @@ class NearestNeighbors:
|
|
72 |
|
73 |
|
74 |
def search(search_sentence):
|
75 |
-
my_model = CLIPTextModelWithProjection.from_pretrained("Diangle/clip4clip-webvid")
|
76 |
-
tokenizer = AutoTokenizer.from_pretrained("Diangle/clip4clip-webvid")
|
77 |
|
78 |
|
79 |
inputs = tokenizer(text=search_sentence , return_tensors="pt", padding=True)
|
|
|
72 |
|
73 |
|
74 |
def search(search_sentence):
|
75 |
+
my_model = CLIPTextModelWithProjection.from_pretrained("Diangle/clip4clip-webvid", use_auth_token=True)
|
76 |
+
tokenizer = AutoTokenizer.from_pretrained("Diangle/clip4clip-webvid", use_auth_token=True)
|
77 |
|
78 |
|
79 |
inputs = tokenizer(text=search_sentence , return_tensors="pt", padding=True)
|