Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -54,7 +54,9 @@ def phrase_query(query, num_results=10):
|
|
54 |
|
55 |
def search(query, num_results=10):
|
56 |
if query.startswith('"') and query.endswith('"'):
|
|
|
57 |
response = phrase_query(query, num_results=num_results)
|
|
|
58 |
else:
|
59 |
response = match_query(query, num_results=num_results)
|
60 |
results = [{"text": hit.content, "repository": f"{hit.username}/{hit.repository}/{hit.path}"} for hit in response]
|
|
|
54 |
|
55 |
def search(query, num_results=10):
|
56 |
if query.startswith('"') and query.endswith('"'):
|
57 |
+
print("HERE")
|
58 |
response = phrase_query(query, num_results=num_results)
|
59 |
+
print(len(response))
|
60 |
else:
|
61 |
response = match_query(query, num_results=num_results)
|
62 |
results = [{"text": hit.content, "repository": f"{hit.username}/{hit.repository}/{hit.path}"} for hit in response]
|