You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor/get model allow registering of new models with function calls (#333)
This PR allows us to register new models and use them in the system:
- refactor of `get_model` so it relies on information stored in
`model_class_map` and `model_config_map` to initialize a new model with
a given model name (which is the key to both mappings)
- a new function `unstructured_inference.models.base.register_new_model`
now allows adding new model definition to the class mapping and config
mapping
- after calling register new model one can now call `get_model` with the
new model name and get the new model
## testing
New unit tests should pass
0 commit comments