server: implement data persistence with database

Using databases + sqlite/postgresql depending of what you want.
Use DATABASE_URL to configure

Closes #70
This commit is contained in:
2023-08-15 16:31:42 +02:00
committed by Mathieu Virbel
parent ef3486eac0
commit 857505124f
8 changed files with 363 additions and 38 deletions

View File

@@ -6,6 +6,9 @@ class Settings(BaseSettings):
OPENMP_KMP_DUPLICATE_LIB_OK: bool = False
# Database
DATABASE_URL: str = "sqlite:///./reflector.sqlite3"
# Whisper
WHISPER_MODEL_SIZE: str = "tiny"
WHISPER_REAL_TIME_MODEL_SIZE: str = "tiny"