Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,12 +59,11 @@ def get_full_context(input):
|
|
| 59 |
|
| 60 |
file_path = "./docs/Troubleshooting_Table.csv"
|
| 61 |
data = pd.read_csv(file_path)
|
| 62 |
-
print(data)
|
| 63 |
for doc in retrieved_documents:
|
| 64 |
index = doc.metadata['index']
|
| 65 |
context += str(data.iloc[[index]])
|
| 66 |
|
| 67 |
-
return context
|
| 68 |
|
| 69 |
|
| 70 |
is_first_run = True # Flag to check if it's the first run
|
|
|
|
| 59 |
|
| 60 |
file_path = "./docs/Troubleshooting_Table.csv"
|
| 61 |
data = pd.read_csv(file_path)
|
|
|
|
| 62 |
for doc in retrieved_documents:
|
| 63 |
index = doc.metadata['index']
|
| 64 |
context += str(data.iloc[[index]])
|
| 65 |
|
| 66 |
+
return str(context)
|
| 67 |
|
| 68 |
|
| 69 |
is_first_run = True # Flag to check if it's the first run
|