fix(mm): port changes into new model_install_common file

Some subtle changes happened between this PR's last update and now. Bring them into the file.
This commit is contained in:
psychedelicious 2024-05-20 16:12:45 +10:00
parent f6d1e1be22
commit 86e201612f

View File

@ -106,8 +106,10 @@ class HFModelSource(StringLikeSource):
def __str__(self) -> str:
"""Return string version of repoid when string rep needed."""
base: str = self.repo_id
base += f":{self.variant or ''}"
base += f":{self.subfolder}" if self.subfolder else ""
if self.variant:
base += f":{self.variant or ''}"
if self.subfolder:
base += f":{self.subfolder}"
return base