Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|