Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,7 @@ def chatbot(input_text, mentioned_person='Mediator John Haynes'):
|
|
| 25 |
current_time = datetime.datetime.now()
|
| 26 |
current_time_str = current_time.strftime("%Y-%m-%d_%H-%M-%S")
|
| 27 |
chat_log_filename = "chathistory.txt"
|
| 28 |
-
chat_log_dir = "
|
| 29 |
if not os.path.exists(chat_log_dir):
|
| 30 |
os.makedirs(chat_log_dir)
|
| 31 |
chat_log_filepath = os.path.join(chat_log_dir, chat_log_filename)
|
|
|
|
| 25 |
current_time = datetime.datetime.now()
|
| 26 |
current_time_str = current_time.strftime("%Y-%m-%d_%H-%M-%S")
|
| 27 |
chat_log_filename = "chathistory.txt"
|
| 28 |
+
chat_log_dir = "chat" # replace with your desired directory name
|
| 29 |
if not os.path.exists(chat_log_dir):
|
| 30 |
os.makedirs(chat_log_dir)
|
| 31 |
chat_log_filepath = os.path.join(chat_log_dir, chat_log_filename)
|