Deployment and Instrumentation¶
To run locally:¶
Set up Environment Variables¶
- Set environment variables using
exportby running this in the terminal, with the appropriate variables
Run Application¶
-
Run this command to launch the endpoint:
-
Test it out by accessing the Swagger UI at
http://localhost:8000/docsand uploading either an .mp3 file or a .wav file and a task eithertranscribeortranslate.
To deploy to a production environment:¶
Set up Environment Variables¶
- Set environment variables using
exportby running this in the terminal, with the appropriate variables:
- To deploy a docker container running the application and monitoring endpoints.
- To rebuild the image, before deploying:
- To shut down the deployment:
-
To add custom flags:
-
http://localhost:8000- Application./docsfor Swagger UI. http://localhost:3000- Grafana dashboard.http://localhost:9090- Prometheus dashboard