Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -88,7 +88,7 @@ def qa_retrieve(query,):
|
|
| 88 |
tier_1 = thoughts['tier 1']
|
| 89 |
tier_2 = thoughts['tier 2']
|
| 90 |
|
| 91 |
-
reference =
|
| 92 |
|
| 93 |
tier_1 = list(tier_1.apply(lambda x: f"[{int(x['ref'])+1}] title: {x['title']}\n Content: {x.content}", axis = 1).values)
|
| 94 |
tier_2 = list(tier_2.apply(lambda x: f"title: {x['title']}\n Content: {x.content}", axis = 1).values)
|
|
|
|
| 88 |
tier_1 = thoughts['tier 1']
|
| 89 |
tier_2 = thoughts['tier 2']
|
| 90 |
|
| 91 |
+
reference = tier_1[['ref', 'url', 'title']].to_dict('records')
|
| 92 |
|
| 93 |
tier_1 = list(tier_1.apply(lambda x: f"[{int(x['ref'])+1}] title: {x['title']}\n Content: {x.content}", axis = 1).values)
|
| 94 |
tier_2 = list(tier_2.apply(lambda x: f"title: {x['title']}\n Content: {x.content}", axis = 1).values)
|