Download model/__init__.py from OpenSafetyLab/ImageGuard: direct link, hf CLI and curl.
- Browser
- Download file 155 Bytes
-
https://huggingface.co/OpenSafetyLab/ImageGuard/resolve/main/model/__init__.py
- Command line
-
hf download hf://OpenSafetyLab/ImageGuard/model/__init__.py
-
curl -L -o __init__.py https://huggingface.co/OpenSafetyLab/ImageGuard/resolve/main/model/__init__.py
155 Bytes
| from .Internlm import InternLM | |
| model_dict = { | |
| 'Internlm': InternLM, | |
| } | |
| def get_model(model_name, **kwargs): | |
| return model_dict[model_name](**kwargs) |