Skip to content

Commit

Permalink
fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Cathy0908 committed Sep 25, 2024
1 parent f747b9a commit 5c88ff8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions data_juicer/utils/model_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,13 @@ def check_model(model_name, force=False):
wget.download(model_link, cached_model_path, bar=None)
except: # noqa: E722
try:
backup_model_link = os.path.join(
get_backup_model_link(model_name), model_name)
backup_model_link = os.path.join(get_backup_model_link(model_name),
model_name)
wget.download(backup_model_link, cached_model_path, bar=None)
except: # noqa: E722
logger.error(
f'Downloading model [{model_name}] error. '
f'Please retry later or download it into {DJMC} '
f'manually from {model_link} or {backup_model_link} ')
logger.error(f'Downloading model [{model_name}] error. '
f'Please retry later or download it into {DJMC} '
f'manually from {model_link} or {backup_model_link} ')
exit(1)
return cached_model_path

Expand Down

0 comments on commit 5c88ff8

Please sign in to comment.