peterpull commited on
Commit
9c95eb8
·
1 Parent(s): 76d0f2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -46,10 +46,10 @@ def store_message(chatinput: str, chatresponse: str):
46
  with open(DATA_FILE, "a") as file:
47
  file.write(f"{datetime.now()},{chatinput},{chatresponse}\n")
48
  print(f"Wrote to datafile: {datetime.now()},{chatinput},{chatresponse}\n")
49
- repo.git.add(DATA_FILE)
50
- repo.git.commit('-m', 'Update data.txt')
51
  print("Committed changes to local repository")
52
- repo.git.push()
53
  print("Pushed changes to remote repository")
54
 
55
  return generate_text()
 
46
  with open(DATA_FILE, "a") as file:
47
  file.write(f"{datetime.now()},{chatinput},{chatresponse}\n")
48
  print(f"Wrote to datafile: {datetime.now()},{chatinput},{chatresponse}\n")
49
+
50
+ repo.commit('Update data.txt')
51
  print("Committed changes to local repository")
52
+ repo.push()
53
  print("Pushed changes to remote repository")
54
 
55
  return generate_text()