Issue with sklearn version 1.1.1

Hi guys!
I have an issue when creating a space in HuggingFace, since the sklearn version used in HuggingFace is 1.1.1, but it is not possible to use that version in neither Colab or Kaggle, which only support version 1.0.2.
Also, if I try to force HuggingFace to use version 1.0.2 in requirements.txt, an error is raised.
Any ideas how to solve this?

PS: This the space I’m having the issue with Predict_client - a Hugging Face Space by jemole

Thanks to Omar Sanseviero, who gave me a hand in the Discord channel, the issue is fixed now.
The way to use sklearn version 1.0.2 was to change sklearn to scikit-learn==1.0.2 in requirements.txt.
More info:

1 Like