Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,7 +61,7 @@ def store_message(name: str, message: str):
|
|
| 61 |
with open(DATA_FILE, "a") as csvfile:
|
| 62 |
writer = csv.DictWriter(csvfile, fieldnames=["User", "Chatbot", "time"])
|
| 63 |
writer.writerow(
|
| 64 |
-
{"User":
|
| 65 |
)
|
| 66 |
commit_url = repo.push_to_hub()
|
| 67 |
print(commit_url)
|
|
|
|
| 61 |
with open(DATA_FILE, "a") as csvfile:
|
| 62 |
writer = csv.DictWriter(csvfile, fieldnames=["User", "Chatbot", "time"])
|
| 63 |
writer.writerow(
|
| 64 |
+
{"User": input_text, "Chatbot": response.response, "time": str(datetime.now())}
|
| 65 |
)
|
| 66 |
commit_url = repo.push_to_hub()
|
| 67 |
print(commit_url)
|