Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
luost26
/
DiffAb
like
5
Runtime error
App
Files
Files
Community
2
Fetching metadata from the HF Docker repository...
main
DiffAb
/
diffab
/
models
/
_base.py
luost26
Update
753e275
almost 4 years ago
Raw
Download with hf CLI
Copy download link
History
Blame
Contribute
Delete
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)