[feat]: Add format auto fixer to main branch (#124)

This commit is contained in:
rlsu9
2024-12-31 15:23:17 -08:00
committed by GitHub
parent d467c7cd35
commit 0aed1868df
70 changed files with 3829 additions and 3378 deletions
+9 -7
View File
@@ -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(