Spaces:
Paused
Paused
Upload helpers/guids.py with huggingface_hub
Browse files- helpers/guids.py +4 -3
helpers/guids.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
|
|
| 1 |
+
import random, string
|
| 2 |
+
|
| 3 |
+
def generate_id(length: int = 8) -> str:
|
| 4 |
+
return "".join(random.choices(string.ascii_letters + string.digits, k=length))
|