fruitpicker01 commited on
Commit
20d75a5
·
verified ·
1 Parent(s): 13a7207

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -146,8 +146,8 @@ def save_message_to_table(data):
146
  print(f"Error accessing the file: {response.status_code}")
147
  return
148
 
149
- # Append the new data
150
- df = df.append(data, ignore_index=True)
151
 
152
  # Convert the DataFrame back to a file
153
  if file_path.endswith('.xlsx'):
 
146
  print(f"Error accessing the file: {response.status_code}")
147
  return
148
 
149
+ # Append the new data using pd.concat
150
+ df = pd.concat([df, pd.DataFrame([data])], ignore_index=True)
151
 
152
  # Convert the DataFrame back to a file
153
  if file_path.endswith('.xlsx'):