ASR-finetuning / docker-compose.yml
saadmannan's picture
HF space application - exclude binary PDFs
5554ef1
raw
history blame contribute delete
720 Bytes
version: '3.8'
services:
# FastAPI REST API
api:
build: .
container_name: whisper-asr-api
ports:
- "8000:8000"
volumes:
- ./whisper_test_tuned:/app/whisper_test_tuned:ro
- ./src:/app/src
- ./api:/app/api
environment:
- MODEL_PATH=/app/whisper_test_tuned
command: uvicorn api.main:app --host 0.0.0.0 --port 8000
restart: unless-stopped
# Gradio Demo
demo:
build: .
container_name: whisper-asr-demo
ports:
- "7860:7860"
volumes:
- ./whisper_test_tuned:/app/whisper_test_tuned:ro
- ./demo:/app/demo
environment:
- MODEL_PATH=/app/whisper_test_tuned
command: python demo/app.py
restart: unless-stopped