botsi commited on
Commit
4b85678
·
verified ·
1 Parent(s): c2b82f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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("./data.csv", index=False)
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