Update app.py
Browse files
app.py
CHANGED
|
@@ -269,7 +269,7 @@ def generate(
|
|
| 269 |
gr.Warning(f"Trimmed input from conversation as it was longer than {MAX_INPUT_TOKEN_LENGTH} tokens.")
|
| 270 |
input_ids = input_ids.to(model.device)
|
| 271 |
|
| 272 |
-
pd.DataFrame(conversation).to_csv(
|
| 273 |
print("updating conversation")
|
| 274 |
repo.push_to_hub(blocking=False, commit_message=f"Updating data at {datetime.datetime.now()}")
|
| 275 |
|
|
|
|
| 269 |
gr.Warning(f"Trimmed input from conversation as it was longer than {MAX_INPUT_TOKEN_LENGTH} tokens.")
|
| 270 |
input_ids = input_ids.to(model.device)
|
| 271 |
|
| 272 |
+
pd.DataFrame(conversation).to_csv(DATA_FILE, index=False)
|
| 273 |
print("updating conversation")
|
| 274 |
repo.push_to_hub(blocking=False, commit_message=f"Updating data at {datetime.datetime.now()}")
|
| 275 |
|