Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
| 50 |
-
repo.
|
| 51 |
print("Committed changes to local repository")
|
| 52 |
-
repo.
|
| 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()
|