peelml
peelml away the pain of ml deployment
Development
1. Setup and Build
1.1 build backend
git clone https://github.com/CambioML/peelml.git
conda create -n peelml python=3.10
conda activate peelml
cd peelml
pip install poetry
pip install git+https://github.com/UKPLab/sentence-transformers.git@179b659621c680371394d507683b25ba7faa0dd8
poetry install --no-root # no root to not install peelml as a package
1.2 build frontend
- install nodejs
- npm install
npm install vite - cd into client folder and
npm run build
2. Run
2.1 Option 1: run the server and client directly without cli
Before you start running the command below, go to server.py and upate
os.environ["OPENAI_API_KEY"] = ""
After that, run the following command
python -m peelml.server
2.2 Option 2: run the cli command
This is a interactive cli to ask you to input required environment parameters. It will then start the server and client for you.
python -m peelml.cli start
3. Install
install peelml into site-packages like a pip install
poetry install
peelml start
P.S: If you build and pip install for local test, your changes will not reflect in peelml site-packages. Therefore, you have to pip3 uninstall peelml, built it again, and the install.
Use
pip install git+https://github.com/UKPLab/sentence-transformers.git@179b659621c680371394d507683b25ba7faa0dd8
pip install peelml
Metadata
Release files for peelml 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| peelml-0.0.4.tar.gz | 817.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| peelml-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.7 MB
Release files / peelml-0.0.4.tar.gz
| Download URL | peelml-0.0.4.tar.gz |
|---|---|
| Size | 817.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db6f785f254a7028f2a5b23ab3136af1cdd8a61b9933c54599f9df782d187434
|
|
BLAKE2b-256 checksum How to use checksums |
74d2f9bd6d8f35d68622b142693bb603492f6eb591d8f7264ad4c33343732e09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.10.12 Darwin/22.4.0
|
Release files / peelml-0.0.4-py3-none-any.whl
| Download URL | peelml-0.0.4-py3-none-any.whl |
|---|---|
| Size | 875.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ddb7d43c054887004946a78fbc66579e03e01496ae1b952d5f586def83ad4d7
|
|
BLAKE2b-256 checksum How to use checksums |
38e6acbe91096efd32443bd6091bf9467ee212767db95554fd7ac848225d2434
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.4.2 CPython/3.10.12 Darwin/22.4.0
|