ECUiVADE commited on
Commit
1095084
1 Parent(s): c1f5b5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -8
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=1))
79
- digits = ''.join(random.choices(string.digits, k=2))
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 = 5):
158
 
159
  temp_history = []
160
  temp_history.append(("""
161
  .
162
- .
163
- .
164
- .
165
- .
166
 
167
- ""","5 minutes have been elapsed. Please fill out the survey at LINK . Remember to copy your unique session ID above"))
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 += """