I’m sorry if I didn’t format the code properly. It’s just a very short code snippet and I really don’t know how to format it differently.
Is this better?
import xgboost as xgb
model = xgb.XGBClassifier() # this is an Error
The error message that I can see is:
xgboost.core.XGBoostError: This app has encountered an error. The original error message is redacted to prevent data leaks.
Full error details have been recorded in the logs (if you're on Streamlit Cloud, click on 'Manage app' in the lower right of your app).
File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 562, in _run_script
File "/app/the_new_krypto/new_crypto.py", line 310, in <module>
tomorrow_up = load_and_predict('BTC_y1.json', BTC_data1, new_predictors)
File "/app/the_new_krypto/new_crypto.py", line 257, in load_and_predict
model = xgb.XGBClassifier()
File "/home/appuser/venv/lib/python3.9/site-packages/xgboost/core.py", line 532, in inner_f
File "/home/appuser/venv/lib/python3.9/site-packages/xgboost/sklearn.py", line 1314, in __init__
File "/home/appuser/venv/lib/python3.9/site-packages/xgboost/sklearn.py", line 528, in __init__
When I click ‘Manage app’ link it opens up a log that exceeds the size of my screen and I am suposed to find “︙” overflow menu in bottom but it’s not there.
The link to my github repo is:
and the requierements.txt is found there.
The link to the deployed app at the streamlit cloud is in my original post above.
I am using windows 11, VS Code, streamlit 1.13.0 and python 3.9.13
I have tried different versions of xgboost with the same error.
The app is working locally on my machine.
I hope I made it right this time.