mishig HF staff commited on
Commit
af6ed4f
·
verified ·
1 Parent(s): e4a0273

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -44,7 +44,7 @@ def search_embeddings(query_text, output_option):
44
  if output_option == "human-friendly":
45
  md = f"Stats:\n\nembedding time: {elapsed_time_embedding:.2f}s\n\nmeilisearch time: {elapsed_time_meilisearch:.2f}s\n\n---\n\n"
46
  for hit in hits:
47
- text, source_page_url, source_page_title, library = hit["text"], hit["source_page_url"], hit["source_page_title"], hit["library"]
48
  source = f"src: [\"{source_page_title}\"]({source_page_url})"
49
  md += text + f"\n\n{source}\n\n---\n\n"
50
  return md
 
44
  if output_option == "human-friendly":
45
  md = f"Stats:\n\nembedding time: {elapsed_time_embedding:.2f}s\n\nmeilisearch time: {elapsed_time_meilisearch:.2f}s\n\n---\n\n"
46
  for hit in hits:
47
+ text, source_page_url, source_page_title = hit["text"], hit["source_page_url"], hit["source_page_title"]
48
  source = f"src: [\"{source_page_title}\"]({source_page_url})"
49
  md += text + f"\n\n{source}\n\n---\n\n"
50
  return md