I am getting the errors:
ERROR: Failed building wheel for scikit-learn
Failed to build scikit-learn
ERROR: Could not build wheels for scikit-learn, which is required to install pyproject.toml-based projects
when referencing a model in my repo
ex: pickled_model = pickle.load(open(‘model.pkl’, ‘rb’))
this is what my requirements.txt file looks like:
streamlit==0.76.0
pandas==1.2.3
scikit-learn==0.23.2
any tips? Thanks in advance!
Hey @dec1costello , thanks for posting …
this is your repo i guess
Few changes will work for you…
Use updated version of scikit-learn
, streamlit
, pandas
Modified requirements.txt
:
scikit-learn
streamlit
pandas
Further improvements in code to resolve other internal errors:
Modified streamlit-app.py
at line no 40:
pred = pickled_model.predict(df)
As previously final_vars
is not defined in code.
I think this will work for you now…
Here is the forked version of your app deployed on my server