Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,9 +49,6 @@ def store_message(chatinput: str, chatresponse: str):
|
|
| 49 |
with open(DATA_FILE, "a") as file:
|
| 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()
|
| 57 |
|
|
|
|
| 49 |
with open(DATA_FILE, "a") as file:
|
| 50 |
file.write(f"{datetime.now()},{chatinput},{chatresponse}\n")
|
| 51 |
print(f"Wrote to datafile: {datetime.now()},{chatinput},{chatresponse}\n")
|
|
|
|
|
|
|
|
|
|
| 52 |
|
| 53 |
return generate_text()
|
| 54 |
|