Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -51,6 +51,7 @@ def store_message(chatinput: str, chatresponse: str):
|
|
| 51 |
if chatinput and chatresponse:
|
| 52 |
with open(DATA_FILE, "a") as csvfile:
|
| 53 |
writer = csv.DictWriter(csvfile, fieldnames=["User", "Chatbot", "time"])
|
|
|
|
| 54 |
writer.writerow(
|
| 55 |
{"User": chatinput, "Chatbot": chatresponse, "time": str(datetime.now())}
|
| 56 |
)
|
|
|
|
| 51 |
if chatinput and chatresponse:
|
| 52 |
with open(DATA_FILE, "a") as csvfile:
|
| 53 |
writer = csv.DictWriter(csvfile, fieldnames=["User", "Chatbot", "time"])
|
| 54 |
+
print({"User": chatinput, "Chatbot": chatresponse, "time": str(datetime.now())})
|
| 55 |
writer.writerow(
|
| 56 |
{"User": chatinput, "Chatbot": chatresponse, "time": str(datetime.now())}
|
| 57 |
)
|