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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -54,10 +54,15 @@ 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
- 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
 
 
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
+ # add your file to the local repository
58
+ repo.add(DATA_FILE)
59
+
60
+ # commit your changes with an appropriate commit message
61
+ commit_message = 'Add my file'
62
+ repo.commit(commit_message)
63
+
64
+ # push your changes to the remote repository
65
+ repo.push_to_hub(access_token=WRITE_TOKEN)
66
 
67
  return generate_text()
68