File size: 452 Bytes
dc23a98
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
# Demo UI. Inference runs on Modal (serve_demo.py); DEMO_URL and DEMO_TOKEN come from .env (never the image).
services:
  demo:
    build: ./demo
    ports:
      - "8507:8501"
    environment:
      DEMO_URL: ${DEMO_URL:?set DEMO_URL in .env (the URL printed by modal deploy serve_demo.py)}
      DEMO_TOKEN: ${DEMO_TOKEN:?set DEMO_TOKEN in .env}
      DEMO_LOG_DIR: /app/results/demo
    volumes:
      - ./results/demo:/app/results/demo