indic-lora / .ipynb_checkpoints /file-checkpoint.py
GenVRadmin's picture
Upload folder using huggingface_hub
f2bee4d verified
raw
history blame contribute delete
235 Bytes
import glob
expected_list = glob.glob("../../m-02-02-2024/*/*.safetensors")
print(expected_list)
import os
for obj in expected_list:
name = obj.split("/")[3]
os.system(f"mkdir -p {name}")
os.system(f"cp -r {obj} {name}/")