Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
luost26
/
DiffAb
like
5
Runtime error
App
Files
Files
Community
2
Fetching metadata from the HF Docker repository...
2461ead
DiffAb
/
diffab
/
models
/
_base.py
luost26
Update
753e275
about 2 years ago
raw
Copy download link
history
blame
Safe
202 Bytes
_MODEL_DICT = {}
def
register_model
(
name
):
def
decorator
(
cls
):
_MODEL_DICT[name] = cls
return
cls
return
decorator
def
get_model
(
cfg
):
return
_MODEL_DICT[cfg.
type
](cfg)