Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -43,9 +43,9 @@ HTML="""
|
|
43 |
</html>
|
44 |
"""
|
45 |
|
46 |
-
DESCRIPTION="""Welcome to our video retrieval demo powered by [
|
47 |
-
Using
|
48 |
-
Discover, explore, and enjoy the world of
|
49 |
"""
|
50 |
ENDING = """For search acceleration capabilities, please refer to [Searchium.ai](https://www.searchium.ai)
|
51 |
"""
|
@@ -113,8 +113,8 @@ class NearestNeighbors:
|
|
113 |
return sim, idx
|
114 |
|
115 |
|
116 |
-
model = CLIPTextModelWithProjection.from_pretrained("
|
117 |
-
tokenizer = CLIPTokenizer.from_pretrained("
|
118 |
|
119 |
def search(search_sentence):
|
120 |
inputs = tokenizer(text=search_sentence , return_tensors="pt")
|
|
|
43 |
</html>
|
44 |
"""
|
45 |
|
46 |
+
DESCRIPTION="""Welcome to our video retrieval demo powered by [Searchium-ai/clip4clip-webvid150k](https://huggingface.co/Searchium-ai/clip4clip-webvid150k)! <br>
|
47 |
+
Using free text search - you will find the top 5 most relevant videos among a dataset of 1.5 million videos. <br>
|
48 |
+
Discover, explore, and enjoy the world of video search at your fingertips.
|
49 |
"""
|
50 |
ENDING = """For search acceleration capabilities, please refer to [Searchium.ai](https://www.searchium.ai)
|
51 |
"""
|
|
|
113 |
return sim, idx
|
114 |
|
115 |
|
116 |
+
model = CLIPTextModelWithProjection.from_pretrained("Searchium-ai/clip4clip-webvid150k")
|
117 |
+
tokenizer = CLIPTokenizer.from_pretrained("Searchium-ai/clip4clip-webvid150k")
|
118 |
|
119 |
def search(search_sentence):
|
120 |
inputs = tokenizer(text=search_sentence , return_tensors="pt")
|