File size: 720 Bytes
5554ef1
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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