Skip to content

Commit

Permalink
attempt two
Browse files Browse the repository at this point in the history
  • Loading branch information
gabewillen committed Feb 6, 2025
1 parent 275dce4 commit 0dd7060
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ def model_names(self) -> list[str]:
cache_paths: list[str] = [
MODEL_CACHE_PATH_TEMPLATE.format(
# the model is always the first element
model=repository_and_revision[0],
path=urljoin(repository_and_revision[0], repository_and_revision[1])
if len(repository_and_revision) > 1
else repository_and_revision[0],
path=urljoin(
repository_and_revision[0],
repository_and_revision[1]
if len(repository_and_revision) > 1
else repository_and_revision[0],
),
)
# the repository is split into the model and revision by the last colon
for repository_and_revision in (
Expand Down

0 comments on commit 0dd7060

Please sign in to comment.