cakiki commited on
Commit
82ae5dc
1 Parent(s): d09c314

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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]