update
Browse files5 unmodified lines67891011121315 unmodified lines293031323334353637385 unmodified lines default_model: str, dropdown_label: str = "Select Hyperbolic Model", choices: list[str] | None = None, provider: str | None = None, bill_to: str | None = None, **kwargs, # noqa: ANN003) -> gr.Blocks: display_choices = choices if choices is not None else models15 unmodified lines for model_name in models: with gr.Column(visible=model_name == default_model) as column: load_kwargs = {k: v for k, v in kwargs.items() if k not in ["src", "choices"]} if provider is not None: load_kwargs["provider"] = provider if bill_to is not None: load_kwargs["bill_to"] = bill_to from ai_gradio.providers import registry
gr.load(name=model_name, src=registry, **load_kwargs)utils_ai_gradio.py+6