Spaces:
Runtime error
Runtime error
TenPoisk
commited on
Commit
·
d4e253d
1
Parent(s):
f993ceb
Update imglib.py
Browse files
imglib.py
CHANGED
@@ -49,7 +49,7 @@ def image_search(query, corpus, n_results=num_results):
|
|
49 |
|
50 |
splitted_query = query.split("EXCLUDING ")
|
51 |
dot_product = 0
|
52 |
-
k = 0 if corpus == "
|
53 |
if len(splitted_query[0]) > 0:
|
54 |
positive_queries = splitted_query[0].split(";")
|
55 |
for positive_query in positive_queries:
|
|
|
49 |
|
50 |
splitted_query = query.split("EXCLUDING ")
|
51 |
dot_product = 0
|
52 |
+
k = 0 if corpus == "Unsplash" else 1
|
53 |
if len(splitted_query[0]) > 0:
|
54 |
positive_queries = splitted_query[0].split(";")
|
55 |
for positive_query in positive_queries:
|