Initial commit: Whisper API with FastAPI, GPU support and Admin Dashboard

This commit is contained in:
Dominic Ballenthin
2026-01-28 23:16:44 +01:00
commit 008ef63bfd
28 changed files with 1871 additions and 0 deletions

27
.env.example Normal file
View File

@@ -0,0 +1,27 @@
# Whisper API Environment Configuration
# Server Settings
PORT=8000
HOST=0.0.0.0
# Whisper Model Configuration
WHISPER_MODEL=large-v3
WHISPER_DEVICE=cuda
WHISPER_COMPUTE_TYPE=float16
# API Authentication
# Multiple API keys separated by commas
API_KEYS=sk-your-api-key-here,sk-another-api-key
# Admin Panel Authentication
ADMIN_USER=admin
ADMIN_PASSWORD=-whisper12510-
# Data Retention (days)
LOG_RETENTION_DAYS=30
# Optional: Sentry for error tracking
# SENTRY_DSN=https://your-sentry-dsn-here
# Optional: HuggingFace Cache (for model downloads)
# HF_HOME=/app/models