MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / get_full_repo_name

Function get_full_repo_name

train_diff.py:56–63  ·  view source on GitHub ↗
(model_id: str, organization: Optional[str] = None, token: Optional[str] = None)

Source from the content-addressed store, hash-verified

54
55
56def get_full_repo_name(model_id: str, organization: Optional[str] = None, token: Optional[str] = None):
57 if token is None:
58 token = HfFolder.get_token()
59 if organization is None:
60 username = whoami(token)["name"]
61 return f"{username}/{model_id}"
62 else:
63 return f"{organization}/{model_id}"
64
65def numpy_to_pil(images):
66 """

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected