Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
| 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(
|