peterpull commited on
Commit
fcf4700
·
1 Parent(s): b3f8239

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -9
app.py CHANGED
@@ -54,15 +54,10 @@ def store_message(chatinput: str, chatresponse: str):
54
  print(f"Wrote to datafile: {datetime.now()},{chatinput},{chatresponse}\n")
55
 
56
  #need to find a way to push back to dataset repo
57
-
58
- # Add the file you want to push to the repository
59
- repo.add(DATA_FILE)
60
-
61
- # Commit the changes to the repository
62
- repo.commit('Added new file')
63
-
64
- # Push the commit to the remote repository
65
- repo.push(repo_url)
66
 
67
  return generate_text()
68
 
 
54
  print(f"Wrote to datafile: {datetime.now()},{chatinput},{chatresponse}\n")
55
 
56
  #need to find a way to push back to dataset repo
57
+ repo.commit_and_push(
58
+ commit_message='Add data file',
59
+ files_to_push=[DATA_FILE],
60
+ repo_url=repo_url)
 
 
 
 
 
61
 
62
  return generate_text()
63