[feat]: Add format auto fixer to main branch (#124)
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
from huggingface_hub import snapshot_download, hf_hub_download
|
||||
import argparse
|
||||
|
||||
from huggingface_hub import hf_hub_download, snapshot_download
|
||||
|
||||
# set args for repo_id, local_dir, repo_type,
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser(
|
||||
description="Download a dataset or model from the Hugging Face Hub"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--repo_id", type=str, help="The ID of the repository to download"
|
||||
)
|
||||
description="Download a dataset or model from the Hugging Face Hub")
|
||||
parser.add_argument("--repo_id",
|
||||
type=str,
|
||||
help="The ID of the repository to download")
|
||||
parser.add_argument(
|
||||
"--local_dir",
|
||||
type=str,
|
||||
@@ -20,7 +20,9 @@ if __name__ == "__main__":
|
||||
type=str,
|
||||
help="The type of repository to download (dataset or model)",
|
||||
)
|
||||
parser.add_argument("--file_name", type=str, help="The file name to download")
|
||||
parser.add_argument("--file_name",
|
||||
type=str,
|
||||
help="The file name to download")
|
||||
args = parser.parse_args()
|
||||
if args.file_name:
|
||||
hf_hub_download(
|
||||
|
||||
Reference in New Issue
Block a user