Bofandra commited on
Commit
346cff9
1 Parent(s): 3164feb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- messages.append({"role": "user", "content": df['Column1.question']})
38
- messages.append({"role": "assistant", "content": df['Column1.answer']})
 
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)