Spaces:
Sleeping
Sleeping
import numpy as np | |
import random | |
import string | |
import uuid | |
from datetime import datetime | |
def create_user_id(): | |
"""Create user_id | |
str: String to id user | |
""" | |
current_date = datetime.now().strftime("%Y-%m-%d-%H-%M-%S") | |
user_id = str(uuid.uuid4()) | |
return current_date + '_' +user_id |