Contains all of the endpoints used for AI requests in the platform
- Python 3.10 or higher
- Clone the repo
git clone https://github.com/hornet-platform/ai
- Create your python virtual environment (optional)
python -m venv <virtualenv_name>
- Activate your virtual environment (optional)
source ./<virtualenv_name>/bin/activate
- Install required modules
pip install -r requirements.txt
- Run the service
uvicorn main:app --reload
As soon as the service starts, head to your browser with the host and the port that was shown on the terminal to see the full documentation of the endpoints.
Hint: you can change the port using
PORTenvironment variable
INFO: Uvicorn running on http://localhost:8000 (Press CTRL+C to quit)
INFO: Started reloader process [20155] using WatchFiles
INFO: Started server process [20157]
INFO: Waiting for application startup.
INFO: Application startup complete.