Spaces:
Runtime error
Runtime error
Kushwanth Chowday Kandala
commited on
AttributeError: 'str' object has no attribute 'append'
Browse files
app.py
CHANGED
|
@@ -121,7 +121,7 @@ def chat_actions():
|
|
| 121 |
for res in result['matches']:
|
| 122 |
i = i + 1
|
| 123 |
data.append([f"{i}⭐", res['score'], res['metadata']['text']])
|
| 124 |
-
consolidated_text
|
| 125 |
|
| 126 |
# Create a DataFrame from the list of lists
|
| 127 |
resdf = pd.DataFrame(data, columns=['TopRank', 'Score', 'Text'])
|
|
|
|
| 121 |
for res in result['matches']:
|
| 122 |
i = i + 1
|
| 123 |
data.append([f"{i}⭐", res['score'], res['metadata']['text']])
|
| 124 |
+
consolidated_text += f"{res['metadata']['text']}\n\n"
|
| 125 |
|
| 126 |
# Create a DataFrame from the list of lists
|
| 127 |
resdf = pd.DataFrame(data, columns=['TopRank', 'Score', 'Text'])
|