(model_name)
| 31 | |
| 32 | |
| 33 | def get_model(model_name): |
| 34 | try: |
| 35 | return MODEL_REGISTRY[model_name] |
| 36 | except KeyError: |
| 37 | raise ValueError( |
| 38 | f"Attempted to load model '{model_name}', but no model for this name found! Supported model names: {', '.join(MODEL_REGISTRY.keys())}" |
| 39 | ) |
| 40 | |
| 41 | |
| 42 | TASK_REGISTRY = {} |
nothing calls this directly
no outgoing calls
no test coverage detected