refactor: Simplify huggingface hub vocab request
This commit is contained in:
parent
1749209406
commit
f62080adfa
1 changed files with 2 additions and 3 deletions
|
@ -40,9 +40,8 @@ def main():
|
|||
args = parser.parse_args()
|
||||
|
||||
vocab_request = HFVocabRequest(args.auth_token, args.model_path, logger)
|
||||
vocab_list = vocab_request.get_vocab_filenames(args.vocab_type)
|
||||
for vocab_file in vocab_list:
|
||||
vocab_request.get_vocab_file(args.model_repo, vocab_file, args.model_path)
|
||||
vocab_type = vocab_request.get_vocab_enum(args.vocab_type)
|
||||
vocab_request.get_all_vocab_files(args.model_repo, vocab_type)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue