Closed camenduru closed 1 year ago
some 🐳 docker providers don't have access to terminal like 🤗 hugging face if it is possible please add something like this then I can push compiled models to 🤗 hugging face like those https://huggingface.co/trrt
python -c "from huggingface_hub import create_repo, upload_folder; hf_token = 'token_here'; repo_id = 'trrt/copiled_tensorrt_engines'; upload_folder(folder_path='/content/copiled_tensorrt_engines', path_in_repo='', repo_id=repo_id, commit_message='content', token=hf_token)"
from subprocess import getoutput def run(command): out = getoutput(f"{command}") return out
I did something like this https://github.com/camenduru/Lsmith/tree/dev not good but working 😋
some 🐳 docker providers don't have access to terminal like 🤗 hugging face if it is possible please add something like this then I can push compiled models to 🤗 hugging face like those https://huggingface.co/trrt