(auth_token: Optional[str])
| 25 | |
| 26 | |
| 27 | def _resolve_git_token(auth_token: Optional[str]) -> Optional[str]: |
| 28 | if auth_token: |
| 29 | return auth_token |
| 30 | from modelscope.hub.api import ModelScopeConfig |
| 31 | return ModelScopeConfig.get_git_token() |
| 32 | |
| 33 | |
| 34 | def _clone_if_needed(git_wrapper: GitCommandWrapper, base_dir: str, |
no test coverage detected
searching dependent graphs…