vipul
RRunPod
•Created by vipul on 9/27/2024 in #⚡|serverless
Issue while running FastAPI TTS(Text To Speech) Docker Image on Serverless
We have made a TTS model that converts text input into an audio file. To serve this model, we created a REST API using the FastAPI framework with multiple endpoints, each performing specific tasks based on the text input. After building the API, we created a Dockerfile, pushed the image to Docker Hub, and attempted to run it on a serverless platform. However, while the container works perfectly on a local setup, it fails to run on the serverless environment.
Could you assist with how to successfully run the RestAPI container on a serverless platform, and once the container is running, how to access the FastAPI endpoints to send text input and get audio responses?
Docker File:
3 replies