Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -50,7 +50,7 @@ def store_message(chatinput: str, chatresponse: str):
|
|
| 50 |
file.write(f"{datetime.now()},{chatinput},{chatresponse}\n")
|
| 51 |
print(f"Wrote to datafile: {datetime.now()},{chatinput},{chatresponse}\n")
|
| 52 |
|
| 53 |
-
repo.push_to_hub(
|
| 54 |
print("pushed data.txt to repo")
|
| 55 |
|
| 56 |
return generate_text()
|
|
|
|
| 50 |
file.write(f"{datetime.now()},{chatinput},{chatresponse}\n")
|
| 51 |
print(f"Wrote to datafile: {datetime.now()},{chatinput},{chatresponse}\n")
|
| 52 |
|
| 53 |
+
repo.push_to_hub([str(os.path.join("data", DATA_FILENAME))])
|
| 54 |
print("pushed data.txt to repo")
|
| 55 |
|
| 56 |
return generate_text()
|