Update app.py
Browse files
app.py
CHANGED
|
@@ -57,9 +57,9 @@ def vector_search(query,top_n=3):
|
|
| 57 |
result_text=""
|
| 58 |
for index,row in results.iterrows():
|
| 59 |
if index!=top_n-1:
|
| 60 |
-
result_text+=f"Title:
|
| 61 |
else:
|
| 62 |
-
result_text+=f"Title:
|
| 63 |
return result_text
|
| 64 |
|
| 65 |
|
|
|
|
| 57 |
result_text=""
|
| 58 |
for index,row in results.iterrows():
|
| 59 |
if index!=top_n-1:
|
| 60 |
+
result_text+=f"Title: {row['title']} Description: {row['description']} Genre: {row['listed_in']}\n\n"
|
| 61 |
else:
|
| 62 |
+
result_text+=f"Title: {row['title']} Description: {row['description']} Genre: {row['listed_in']}"
|
| 63 |
return result_text
|
| 64 |
|
| 65 |
|