Spaces:
Running
Running
Update app.py
Browse files
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']})
|