Update app.py
Browse files
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=
|
39 |
-
digits = ''.join(random.choices(string.digits, k=
|
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=
|
78 |
-
digits = ''.join(random.choices(string.digits, k=
|
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 |
|