Spaces:
Runtime error
Runtime error
TenPoisk
commited on
Commit
·
85f5850
1
Parent(s):
0be0137
Rename app.py to imglib.py
Browse files- app.py → imglib.py +1 -2
app.py → imglib.py
RENAMED
@@ -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:
|
@@ -96,7 +96,6 @@ def image_search(query, corpus, n_results=num_results):
|
|
96 |
description = """
|
97 |
# ImgLib
|
98 |
**Enter your query and hit enter**
|
99 |
-
**by Evgeniy Hristoforu**
|
100 |
"""
|
101 |
|
102 |
howto = """
|
|
|
49 |
|
50 |
splitted_query = query.split("EXCLUDING ")
|
51 |
dot_product = 0
|
52 |
+
k = 0 if corpus == "Code" else 1
|
53 |
if len(splitted_query[0]) > 0:
|
54 |
positive_queries = splitted_query[0].split(";")
|
55 |
for positive_query in positive_queries:
|
|
|
96 |
description = """
|
97 |
# ImgLib
|
98 |
**Enter your query and hit enter**
|
|
|
99 |
"""
|
100 |
|
101 |
howto = """
|