This is a starter project for users who want to use the Replicate Python client to run machine learning models in the cloud.
- You have installed python 3.8 or higher.
- You have a Replicate API token.
- Clone this repository with
git clone git@github.com:replicate/python-starter.git - Ensure virutalenv is installed with
pip install virtualenv - Create a virtual environment with
virtualenv .venv - Source the virtual environment with
source .venv/bin/activate - Install the dependencies with
pip install -r requirements.txt - Add your Replicate API token by running
cp .env.example .envand editing the.envfile - Run the script with
python prediction.py
To contribute to this project, follow these steps:
- Fork this repository.
- Create a branch:
git checkout -b <branch_name> - Make your changes and commit them:
git commit -m '<commit_message>' - Push to the original branch:
git push origin <project_name>/<location> - Create the pull request.
Alternatively, see the GitHub documentation on creating a pull request.