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