Depoilement probleme

Traceback (most recent call last):
  File "/home/appuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 565, in _run_script
    exec(code, module.__dict__)
  File "/app/customer-banking-churn/app2_py.py", line 60, in <module>
    main()
  File "/app/customer-banking-churn/app2_py.py", line 53, in main
    result = predict_customer_churn(vintage, age,gender,dependents,occupation,city, customer_nw_category, branch_code, days_since_last_transaction, current_balance, average_monthly_balance_prevQ2, current_month_credit, previous_month_credit, previous_month_debit)
  File "/app/customer-banking-churn/app2_py.py", line 24, in predict_customer_churn
    prediction = loaded_model_xg.predict(input_data)
  File "/home/appuser/venv/lib/python3.9/site-packages/sklearn/model_selection/_search.py", line 499, in predict
    return self.best_estimator_.predict(X)
  File "/home/appuser/venv/lib/python3.9/site-packages/sklearn/pipeline.py", line 481, in predict
    return self.steps[-1][1].predict(Xt, **predict_params)
  File "/home/appuser/venv/lib/python3.9/site-packages/xgboost/sklearn.py", line 1525, in predict
    class_probs = super().predict(
  File "/home/appuser/venv/lib/python3.9/site-packages/xgboost/sklearn.py", line 1114, in predict
    predts = self.get_booster().inplace_predict(
  File "/home/appuser/venv/lib/python3.9/site-packages/xgboost/core.py", line 2292, in inplace_predict
    _check_call(
  File "/home/appuser/venv/lib/python3.9/site-packages/xgboost/core.py", line 279, in _check_call
    raise XGBoostError(py_str(_LIB.XGBGetLastError()))
xgboost.core.XGBoostError: [13:45:03] ../src/c_api/../data/array_interface.h:475: Unicode-2 is not supported.
Stack trace:
  [bt] (0) /home/appuser/venv/lib/python3.9/site-packages/xgboost/lib/libxgboost.so(+0x1395a3) [0x7f0d159535a3]
  [bt] (1) /home/appuser/venv/lib/python3.9/site-packages/xgboost/lib/libxgboost.so(+0x16d557) [0x7f0d15987557]
  [bt] (2) /home/appuser/venv/lib/python3.9/site-packages/xgboost/lib/libxgboost.so(+0x272533) [0x7f0d15a8c533]
  [bt] (3) /home/appuser/venv/lib/python3.9/site-packages/xgboost/lib/libxgboost.so(XGBoosterPredictFromDense+0xa7) [0x7f0d1595c667]
  [bt] (4) /usr/lib/x86_64-linux-gnu/libffi.so.7(+0x6d1d) [0x7f0d729c7d1d]
  [bt] (5) /usr/lib/x86_64-linux-gnu/libffi.so.7(+0x6289) [0x7f0d729c7289]
  [bt] (6) /usr/local/lib/python3.9/lib-dynload/_ctypes.cpython-39-x86_64-linux-gnu.so(+0xe182) [0x7f0d729db182]
  [bt] (7) /usr/local/lib/python3.9/lib-dynload/_ctypes.cpython-39-x86_64-linux-gnu.so(+0x9b56) [0x7f0d729d6b56]
  [bt] (8) /usr/local/bin/../lib/libpython3.9.so.1.0(_PyObject_MakeTpCall+0x7c) [0x7f0d9d28271c]
``` this error keep showing i dont understand why i have a final project please help me

Hi @Ghita_Dahibi,

Thank you for sharing your question with the community!

Your post is missing a code snippet and a link to your app’s GitHub repo. Please check out our guidelines on how to post an effective question here and update your post to help the community answer your question.