File size: 1,274 Bytes
d083627
 
 
7f5060e
d083627
 
 
 
6774799
0904949
d083627
 
 
f6ca436
d083627
 
 
 
 
 
 
f6ca436
d083627
 
073f329
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
33
34
35
36
37
38
39
40
41
import os
import tempfile

MAX_CONCURRENT_JOBS = 3
LOCK_DIR = os.path.join(tempfile.gettempdir(), "pycaps_locks")
os.makedirs(LOCK_DIR, exist_ok=True)
MAX_VIDEO_SIZE = 50 * 1024 * 1024
LOCK_TTL_SECONDS = 20 * 60
SESSION_TTL_SECONDS = 60 * 60
MAX_VIDEO_DURATION = 60

TEMPLATES_INFO = [
    {"name": "classic", "ai_features": []},
    {"name": "fast", "ai_features": []},
    {"name": "word-focus", "ai_features": []},
    {"name": "line-focus", "ai_features": []},
    {"name": "minimalist", "ai_features": []},
    {"name": "neo-minimal", "ai_features": ["AI Tagger"]},
    {"name": "hype", "ai_features": ["Auto-Emoji"]},
    {"name": "retro-gaming", "ai_features": []},
    {"name": "vibrant", "ai_features": []},
    {"name": "explosive", "ai_features": []},
]
TEMPLATE_NAMES = [t["name"] for t in TEMPLATES_INFO]

SUPPORTED_LANGUAGES = {
    "English (US)": ("en-US", "en"),
    "Spanish": ("es-ES", "es"),
    "French": ("fr-FR", "fr"),
    "German": ("de-DE", "de"),
    "Italian": ("it-IT", "it"),
    "Portuguese": ("pt-BR", "pt"),
    "Dutch": ("nl-NL", "nl"),
    "Russian": ("ru-RU", "ru"),
    "Japanese": ("ja-JP", "ja"),
    "Korean": ("ko-KR", "ko"),
    "Chinese (Mandarin)": ("cmn-CN", "zh"),
    "Hindi": ("hi-IN", "hi"),
    "Arabic": ("ar-SA", "ar"),
}