peterpull commited on
Commit
7a0a525
·
1 Parent(s): 96e634c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def generate_html() -> str:
46
  return html
47
 
48
  def store_message(chatinput: str, chatresponse: str):
49
- if name and message:
50
  with open(DATA_FILE, "a") as csvfile:
51
  writer = csv.DictWriter(csvfile, fieldnames=["User", "Chatbot", "time"])
52
  writer.writerow(
 
46
  return html
47
 
48
  def store_message(chatinput: str, chatresponse: str):
49
+ if chatinput and chatresponse:
50
  with open(DATA_FILE, "a") as csvfile:
51
  writer = csv.DictWriter(csvfile, fieldnames=["User", "Chatbot", "time"])
52
  writer.writerow(