We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
metadata_from_config
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))
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.
model_card.metadata.widget = [model_card.metadata.widget]
This is a minor error, but reporting it just in case.
The text was updated successfully, but these errors were encountered:
Yes, that's due to a recent change in huggingface_hub and is addressed in #392.
huggingface_hub
Sorry, something went wrong.
No branches or pull requests
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:
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.
The text was updated successfully, but these errors were encountered: