from pycaret.datasets import get_data
juice = get_data('juice')
Idint64
Purchaseobject
0
1
CH
1
2
CH
2
3
CH
3
4
MM
4
5
CH
from pycaret.classification import *
exp_name = setup(data = juice, target = 'Purchase')
ls = create_model('lr')
create_app(ls)
Running on local URL: http://127.0.0.1:7862/
To create a public link, set `share=True` in `launch()`.
create_api(ls, "teste")
API sucessfully created. This function only creates a POST API, it doesn't run it automatically.
To run your API, please run this command --> !python teste.py
!python teste.py
Transformation Pipeline and Model Successfully Loaded
INFO: Started server process [933]
INFO: Waiting for application startup.
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8080 (Press CTRL+C to quit)
WARNING: Unsupported upgrade request.
WARNING: No supported WebSocket library detected. Please use 'pip install uvicorn[standard]', or install 'websockets' or 'wsproto' manually.
WARNING: Unsupported upgrade request.
WARNING: No supported WebSocket library detected. Please use 'pip install uvicorn[standard]', or install 'websockets' or 'wsproto' manually.
^C
INFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [933]