phase cv 0
This commit is contained in:
@@ -9,6 +9,19 @@ from .base import (
|
||||
)
|
||||
from .soccer import SoccerBroadcastProfile
|
||||
|
||||
_PROFILES: dict[str, type] = {
|
||||
"soccer_broadcast": SoccerBroadcastProfile,
|
||||
}
|
||||
|
||||
|
||||
def get_profile(name: str) -> ContentTypeProfile:
|
||||
"""Get a profile instance by name."""
|
||||
cls = _PROFILES.get(name)
|
||||
if cls is None:
|
||||
raise ValueError(f"Unknown profile: {name!r}. Available: {list(_PROFILES)}")
|
||||
return cls()
|
||||
|
||||
|
||||
__all__ = [
|
||||
"ContentTypeProfile",
|
||||
"CropContext",
|
||||
@@ -18,4 +31,5 @@ __all__ = [
|
||||
"ResolverConfig",
|
||||
"SceneFilterConfig",
|
||||
"SoccerBroadcastProfile",
|
||||
"get_profile",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user