Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def respond(
|
|
33 |
messages.append({"role": "user", "content": row['user']})
|
34 |
messages.append({"role": "assistant", "content": row['assistant']})
|
35 |
|
36 |
-
selected_dfs = torch.load('selected_dfs.sav', map_location=torch.device('cpu'))
|
37 |
for df in selected_dfs:
|
38 |
df = df.dropna()
|
39 |
n = math.floor(df.shape[0]/10000)
|
@@ -45,7 +45,7 @@ def respond(
|
|
45 |
print(row['Column1.answer'])
|
46 |
messages.append({"role": "user", "content": row['Column1.question']})
|
47 |
messages.append({"role": "assistant", "content": row['Column1.answer']})
|
48 |
-
|
49 |
messages.append({"role": "user", "content": message})
|
50 |
#print(messages)
|
51 |
|
|
|
33 |
messages.append({"role": "user", "content": row['user']})
|
34 |
messages.append({"role": "assistant", "content": row['assistant']})
|
35 |
|
36 |
+
"""selected_dfs = torch.load('selected_dfs.sav', map_location=torch.device('cpu'))
|
37 |
for df in selected_dfs:
|
38 |
df = df.dropna()
|
39 |
n = math.floor(df.shape[0]/10000)
|
|
|
45 |
print(row['Column1.answer'])
|
46 |
messages.append({"role": "user", "content": row['Column1.question']})
|
47 |
messages.append({"role": "assistant", "content": row['Column1.answer']})
|
48 |
+
"""
|
49 |
messages.append({"role": "user", "content": message})
|
50 |
#print(messages)
|
51 |
|