ECUiVADE commited on
Commit
f000dea
1 Parent(s): 114763b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -35,8 +35,8 @@ def load_model():
35
  # Function to generate a unique identifier for each chat session
36
  def generate_unique_id():
37
  # Generate a random sequence of 3 letters and 3 digits
38
- letters = ''.join(random.choices(string.ascii_letters, k=3))
39
- digits = ''.join(random.choices(string.digits, k=3))
40
  unique_id = letters + digits
41
  return unique_id
42
 
@@ -74,8 +74,8 @@ class ChatbotAPP:
74
 
75
  def generate_unique_id(self): #in an instance the user resets using the reset button
76
  # Generate a random sequence of 3 letters and 3 digits
77
- letters = ''.join(random.choices(string.ascii_letters, k=3))
78
- digits = ''.join(random.choices(string.digits, k=3))
79
  unique_id = letters + digits
80
  return unique_id
81
 
 
35
  # Function to generate a unique identifier for each chat session
36
  def generate_unique_id():
37
  # Generate a random sequence of 3 letters and 3 digits
38
+ letters = ''.join(random.choices(string.ascii_letters, k=1))
39
+ digits = ''.join(random.choices(string.digits, k=2))
40
  unique_id = letters + digits
41
  return unique_id
42
 
 
74
 
75
  def generate_unique_id(self): #in an instance the user resets using the reset button
76
  # Generate a random sequence of 3 letters and 3 digits
77
+ letters = ''.join(random.choices(string.ascii_letters, k=1))
78
+ digits = ''.join(random.choices(string.digits, k=2))
79
  unique_id = letters + digits
80
  return unique_id
81