Update app.py
Browse files
app.py
CHANGED
|
@@ -75,8 +75,8 @@ class ChatbotAPP:
|
|
| 75 |
|
| 76 |
def generate_unique_id(self): #in an instance the user resets using the reset button
|
| 77 |
# Generate a random sequence of 3 letters and 3 digits
|
| 78 |
-
letters = ''.join(random.choices(string.ascii_letters, k=
|
| 79 |
-
digits = ''.join(random.choices(string.digits, k=
|
| 80 |
unique_id = letters + digits
|
| 81 |
return unique_id
|
| 82 |
|
|
@@ -154,17 +154,14 @@ class ChatbotAPP:
|
|
| 154 |
self.isFirstRun = False
|
| 155 |
firstmsg = prompt
|
| 156 |
|
| 157 |
-
if (current_time - self.start_time) > timedelta (minutes =
|
| 158 |
|
| 159 |
temp_history = []
|
| 160 |
temp_history.append(("""
|
| 161 |
.
|
| 162 |
-
.
|
| 163 |
-
.
|
| 164 |
-
.
|
| 165 |
-
.
|
| 166 |
|
| 167 |
-
""","
|
| 168 |
return temp_history
|
| 169 |
|
| 170 |
self.context += """
|
|
|
|
| 75 |
|
| 76 |
def generate_unique_id(self): #in an instance the user resets using the reset button
|
| 77 |
# Generate a random sequence of 3 letters and 3 digits
|
| 78 |
+
letters = ''.join(random.choices(string.ascii_letters, k=3))
|
| 79 |
+
digits = ''.join(random.choices(string.digits, k=3))
|
| 80 |
unique_id = letters + digits
|
| 81 |
return unique_id
|
| 82 |
|
|
|
|
| 154 |
self.isFirstRun = False
|
| 155 |
firstmsg = prompt
|
| 156 |
|
| 157 |
+
if (current_time - self.start_time) > timedelta (minutes = 15):
|
| 158 |
|
| 159 |
temp_history = []
|
| 160 |
temp_history.append(("""
|
| 161 |
.
|
| 162 |
+
.
|
|
|
|
|
|
|
|
|
|
| 163 |
|
| 164 |
+
""","15 minutes have passed while chatting with Barry. Please fill out the survey at <LINK> . Remember to copy your unique session ID above"))
|
| 165 |
return temp_history
|
| 166 |
|
| 167 |
self.context += """
|