Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
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
|