Spaces:
Runtime error
Runtime error
Commit
·
c0b6381
1
Parent(s):
9acbb96
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def get_html(url_list, height=224):
|
|
28 |
return html
|
29 |
|
30 |
|
31 |
-
|
32 |
def image_search(query, top_k=8):
|
33 |
with torch.no_grad():
|
34 |
text_embedding = text_encoder(**tokenizer(query, return_tensors='pt')).pooler_output
|
|
|
28 |
return html
|
29 |
|
30 |
|
31 |
+
#@st.cache(show_spinner=False)
|
32 |
def image_search(query, top_k=8):
|
33 |
with torch.no_grad():
|
34 |
text_embedding = text_encoder(**tokenizer(query, return_tensors='pt')).pooler_output
|