Hello Streamlit community,
I am trying to deploy laptop price prediction application, but I am facing the following issue while deploying it.
My app is running perfectly fine in local.
AttributeError: 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).
Traceback:
File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 542, in _run_script
exec(code, module.__dict__)
File "/mount/src/laptop-price-predictor-deployed/app.py", line 54, in <module>
pred = pipe.predict(inputs)
File "/home/adminuser/venv/lib/python3.9/site-packages/sklearn/pipeline.py", line 602, in predict
Xt = transform.transform(Xt)
File "/home/adminuser/venv/lib/python3.9/site-packages/sklearn/utils/_set_output.py", line 295, in wrapped
data_to_wrap = f(self, X, *args, **kwargs)
File "/home/adminuser/venv/lib/python3.9/site-packages/sklearn/compose/_column_transformer.py", line 1014, in transform
Xs = self._call_func_on_transformers(
File "/home/adminuser/venv/lib/python3.9/site-packages/sklearn/compose/_column_transformer.py", line 823, in _call_func_on_transformers
return Parallel(n_jobs=self.n_jobs)(jobs)
File "/home/adminuser/venv/lib/python3.9/site-packages/sklearn/utils/parallel.py", line 67, in __call__
return super().__call__(iterable_with_config)
File "/home/adminuser/venv/lib/python3.9/site-packages/joblib/parallel.py", line 1863, in __call__
return output if self.return_generator else list(output)
File "/home/adminuser/venv/lib/python3.9/site-packages/joblib/parallel.py", line 1792, in _get_sequential_output
res = func(*args, **kwargs)
File "/home/adminuser/venv/lib/python3.9/site-packages/sklearn/utils/parallel.py", line 129, in __call__
return self.function(*args, **kwargs)
File "/home/adminuser/venv/lib/python3.9/site-packages/sklearn/pipeline.py", line 1283, in _transform_one
res = transformer.transform(X, **params.transform)
This is my github repo: GitHub - rishabhprasad2003/Laptop-Price-Predictor-Deployed
URL for app(facing error while predicting): https://laptop-price-predictor-in-rupee.streamlit.app/
streamlit version : 1.32.0
python version : 3.11.5