GraziePrego commited on
Commit
eedaf5b
·
verified ·
1 Parent(s): a2dd2c4

Upload helpers/guids.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. helpers/guids.py +4 -3
helpers/guids.py CHANGED
@@ -1,3 +1,4 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:3ecd3be86e09c5e10d88e4d576dc3dcdea6d5c3416af863606cfe3e962f70076
3
- size 147
 
 
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))