Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -34,8 +34,9 @@ def respond(
|
|
34 |
|
35 |
selected_dfs = torch.load('selected_dfs.sav', map_location=torch.device('cpu'))
|
36 |
for df in selected_dfs:
|
37 |
-
|
38 |
-
|
|
|
39 |
|
40 |
messages.append({"role": "user", "content": message})
|
41 |
print(messages)
|
|
|
34 |
|
35 |
selected_dfs = torch.load('selected_dfs.sav', map_location=torch.device('cpu'))
|
36 |
for df in selected_dfs:
|
37 |
+
for index, row in df.iterrows():
|
38 |
+
messages.append({"role": "user", "content": row['Column1.question']})
|
39 |
+
messages.append({"role": "assistant", "content": row['Column1.answer']})
|
40 |
|
41 |
messages.append({"role": "user", "content": message})
|
42 |
print(messages)
|