Skip to content

Create Gradio Demo from skops pipeline #2015

@freddyaboulton

Description

@freddyaboulton
  • I have searched to see if a similar issue already exists.

Is your feature request related to a problem? Please describe.
(skops)[https://huggingface.co/blog/skops] makes it easy to host a scikit learn model on the model hub and tag it with a model card that includes important metadata, like sklearn version, input data types, and example inputs.

It would be really helpful to users to automatically create gradio demos from scikit learn models on the hub.

Describe the solution you'd like

The existing api for loading transformers pipelines on the hub should work for skops pipelines.

gr.Interface.load("models/<user-name>/<sklearn-pipeline-name>").launch(...)

Additional context
Out of scope - "rich" ui that depends on the input types, e.g. drop-down for categorical. This information is not tracked by skops in the metadata yet.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions