Skip to content

Commit

Permalink
fix force download bug (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeachWang authored Jan 6, 2025
1 parent 06a0ffa commit ffa4e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data_juicer/utils/model_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def check_model(model_name, force=False):
download again forcefully.
"""
# check for local model
if os.path.exists(model_name):
if not force and os.path.exists(model_name):
return model_name

if not os.path.exists(DJMC):
Expand Down

0 comments on commit ffa4e9b

Please sign in to comment.