Bofandra commited on
Commit
20d2a18
·
verified ·
1 Parent(s): 346cff9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -34,6 +34,7 @@ def respond(
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']})
 
34
 
35
  selected_dfs = torch.load('selected_dfs.sav', map_location=torch.device('cpu'))
36
  for df in selected_dfs:
37
+ df = df.dropna()
38
  for index, row in df.iterrows():
39
  messages.append({"role": "user", "content": row['Column1.question']})
40
  messages.append({"role": "assistant", "content": row['Column1.answer']})