Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model card widget : array format not provided by metadata_from_config #393

Open
Wissant opened this issue Oct 8, 2023 · 1 comment
Open

Comments

@Wissant
Copy link

Wissant commented Oct 8, 2023

Hello! I have been running the notebook behind this tutorial :
https://skops.readthedocs.io/en/latest/auto_examples/plot_tabular_regression.html#sphx-glr-auto-examples-plot-tabular-regression-py

The model card is initialized with this command card.metadata_from_config(Path(local_repo))

After creating the model card, I went on to push the model to the hf hub. I ran into this error:

 Bad request for commit endpoint:
"widget" must be an array

I was able to overcome the issue by executing : model_card.metadata.widget = [model_card.metadata.widget] prior to saving the model card.

This is a minor error, but reporting it just in case.

@BenjaminBossan
Copy link
Collaborator

Yes, that's due to a recent change in huggingface_hub and is addressed in #392.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants