Spaces:
Sleeping
Sleeping
Upload rag.py
Browse files- agent/rag/rag.py +2 -2
agent/rag/rag.py
CHANGED
|
@@ -17,8 +17,8 @@ def init_rag(path_file, text_encoder_model):
|
|
| 17 |
answers = []
|
| 18 |
|
| 19 |
for _, row in df.iterrows():
|
| 20 |
-
questions.append(row[0])
|
| 21 |
-
answers.append(row[1])
|
| 22 |
|
| 23 |
corpus = questions
|
| 24 |
|
|
|
|
| 17 |
answers = []
|
| 18 |
|
| 19 |
for _, row in df.iterrows():
|
| 20 |
+
questions.append(row.iloc[0])
|
| 21 |
+
answers.append(row.iloc[1])
|
| 22 |
|
| 23 |
corpus = questions
|
| 24 |
|