Spaces:
Sleeping
Sleeping
| # HF Space — CPU frame-extraction worker (FastAPI, no GPU) | |
| # Hardware: CPU Basic (free tier) | |
| # Secrets: S3_BUCKET, S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY, | |
| # S3_ENDPOINT_URL (optional), S3_REGION (optional), | |
| # S3_ASSESSMENT_PREFIX (optional, default: industrial/assessments) | |
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN apt-get update -qq && \ | |
| apt-get install -y -qq ffmpeg libgl1 libglib2.0-0 && \ | |
| rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app.py . | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |