pycaret / pycaret-deployment-streamlit Goto Github PK
View Code? Open in Web Editor NEWPyCaret and Streamlit app deployment on Heroku
PyCaret and Streamlit app deployment on Heroku
I used to be able to run pycaret_deployment_streamlit with no problem. All of the sudden I started getting this error
pycaret/regression.py", line 7955, in predict_model sys.exit("Pipeline not found")
Reproduction steps
cd pycaret-deployment-streamlit
virtualenv virtual
source virtual/bin/activate
virtual/bin/pip install --upgrade pip
virtual/bin/pip install --force-reinstall streamlit
virtual/bin/pip install --force-reinstall pycaret==2.1.2
virtual/bin/streamlit run app.py --server.address 0.0.0.0 --server.port 8888
I'm running Python 3.8 and tried it in multiple OS (Ubuntu anr MacOsX).
Note: I can run this with no problems on pycaret==1.0.0
Note2: I duplicated this issue on purpose on the main repo since I thought this could easily be a wider problem
I used to be able to run pycaret_deployment_streamlit with no problem. All of the sudden I started getting this error:
I'm running Python 3.8, with those libraries:
pycaret==3.0.0rc9
streamlit==1.20.0
I am using the same jupyter notebook provided by https://github.com/pycaret/pycaret-deployment-streamlit
When I try to test my pycaret streamlit deployment I get the following error: ModuleNotFoundError: No module named 'pycaret.regression; 'pycaret' is not a package
Hi,
I download code base.
But unable to run the streamlit app
streamlit(mlenv) iibadmin@iibadmin-uat-ubuntu:~/srik/ml/pycaret-deployment-streamlit$ streamlit run app.py
Traceback (most recent call last):
File "/home/iibadmin/srik/ml/mlenv/lib/python3.9/site-packages/toml/decoder.py", line 511, in loads
ret = decoder.load_line(line, currentlevel, multikey,
File "/home/iibadmin/srik/ml/mlenv/lib/python3.9/site-packages/toml/decoder.py", line 778, in load_line
value, vtype = self.load_value(pair[1], strictly_valid)
File "/home/iibadmin/srik/ml/mlenv/lib/python3.9/site-packages/toml/decoder.py", line 812, in load_value
raise ValueError("Empty value is invalid")
ValueError: Empty value is invalid
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/iibadmin/srik/ml/mlenv/bin/streamlit", line 8, in
sys.exit(main())
File "/home/iibadmin/srik/ml/mlenv/lib/python3.9/site-packages/click/core.py", line 829, in call
return self.main(*args, **kwargs)
File "/home/iibadmin/srik/ml/mlenv/lib/python3.9/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/iibadmin/srik/ml/mlenv/lib/python3.9/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/iibadmin/srik/ml/mlenv/lib/python3.9/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/iibadmin/srik/ml/mlenv/lib/python3.9/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/iibadmin/srik/ml/mlenv/lib/python3.9/site-packages/streamlit/cli.py", line 173, in main_run
bootstrap.load_config_options(flag_options=kwargs)
File "/home/iibadmin/srik/ml/mlenv/lib/python3.9/site-packages/streamlit/bootstrap.py", line 319, in load_config_options
config.get_config_options(force_reparse=True, options_from_flags=options_from_flags)
File "/home/iibadmin/srik/ml/mlenv/lib/python3.9/site-packages/streamlit/config.py", line 1057, in get_config_options
_update_config_with_toml(file_contents, filename)
File "/home/iibadmin/srik/ml/mlenv/lib/python3.9/site-packages/streamlit/config.py", line 934, in _update_config_with_toml
parsed_config_file = toml.loads(raw_toml)
File "/home/iibadmin/srik/ml/mlenv/lib/python3.9/site-packages/toml/decoder.py", line 514, in loads
raise TomlDecodeError(str(err), original, pos)
toml.decoder.TomlDecodeError: Empty value is invalid (line 4 column 1 char 42)
(mlenv) iibadmin@iibadmin-uat-ubuntu:~/srik/ml/pycaret-deployment-streamlit$
PLEASE GUIDE HOW TO FIX THIS ISSUE and run successfully.
Regards,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.