peterpull commited on
Commit
8966b93
·
1 Parent(s): 82fa02f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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
  )