Deployment and Instrumentation¶
To run locally:¶
Set up Environment Variables¶
- Set environment variables using
export
by 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/docs
and uploading either an .mp3 file or a .wav file and a task eithertranscribe
ortranslate
.
To deploy to a production environment:¶
Set up Environment Variables¶
- Set environment variables using
export
by 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./docs
for Swagger UI. http://localhost:3000
- Grafana dashboard.http://localhost:9090
- Prometheus dashboard