Install FastAPI
Serve model
In a terminal, call:weave://your_entity/project-name/YourModel:<hash>
To use it, navigate to the Swagger UI link, click the predict endpoint and then click “Try it out!”.Help us improve these docs. Take our quick survey.
Expose your Weave ops and models as API endpoints for serving predictions and running inference in production.
weave serve <ref>
pip install fastapi uvicorn
weave serve <your model ref>
weave://your_entity/project-name/YourModel:<hash>
To use it, navigate to the Swagger UI link, click the predict endpoint and then click “Try it out!”.Was this page helpful?