YAML Metadata Error: "widget" must be an array

How to use


import joblib
from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split

REPO_ID = "d2i-pti-iu/test_svc_model"
FILENAME = "iris_svm.joblib"
model = joblib.load("../d2i-pti-iu/iris_test/iris_svm.joblib")
iris = load_iris()

X = iris.data[:3]
Y = iris.target[:3]
labels = model.predict(X)

Eval

model.score(X, Y)
Downloads last month
0
Inference Examples
This model does not have enough activity to be deployed to Inference API (serverless) yet. Increase its social visibility and check back later, or deploy to Inference Endpoints (dedicated) instead.

Space using d2i-pti-iu/iris_test 1