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