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 585feccf82
commit a9f773c03c

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
if self.variant:
base += f":{self.variant or ''}"
base += f":{self.subfolder}" if self.subfolder else ""
if self.subfolder:
base += f":{self.subfolder}"
return base