Update app.py
Browse files
app.py
CHANGED
@@ -144,7 +144,7 @@ class ChatbotAPP:
|
|
144 |
#if not len(Name) == 0 and not len(Occupation) == 0 and not len(Ethnicity) == 0 and not len(Gender) == 0 and not len(Age) == 0 and not len(YearsOfExp):
|
145 |
if self.agreed:
|
146 |
|
147 |
-
user_msg_timestamp = datetime.now().strftime("%
|
148 |
|
149 |
firstmsg =""
|
150 |
if self.isFirstRun:
|
@@ -178,7 +178,7 @@ class ChatbotAPP:
|
|
178 |
|
179 |
cleaned_response = self.strip_text(response)
|
180 |
|
181 |
-
bot_msg_timestamp = datetime.now().strftime("%
|
182 |
|
183 |
|
184 |
self.chat_history.append((prompt,cleaned_response))
|
|
|
144 |
#if not len(Name) == 0 and not len(Occupation) == 0 and not len(Ethnicity) == 0 and not len(Gender) == 0 and not len(Age) == 0 and not len(YearsOfExp):
|
145 |
if self.agreed:
|
146 |
|
147 |
+
user_msg_timestamp = datetime.now().strftime("%H:%M:%S") #capture timestamp the user message is recieved.
|
148 |
|
149 |
firstmsg =""
|
150 |
if self.isFirstRun:
|
|
|
178 |
|
179 |
cleaned_response = self.strip_text(response)
|
180 |
|
181 |
+
bot_msg_timestamp = datetime.now().strftime("%H:%M:%S") #Time stamp after the generating response.
|
182 |
|
183 |
|
184 |
self.chat_history.append((prompt,cleaned_response))
|