CreatorPlus / creatorplus /config.py
Habib-HF's picture
Upload folder using huggingface_hub
a9c880c verified
Raw
History Blame Contribute Delete
1.23 kB
import os
from pathlib import Path
from creatorplus.version import VERSION
APP_NAME = "CreatorPlus"
APP_VERSION = VERSION
BASE_DIR = Path(__file__).resolve().parent.parent
OUTPUTS_DIR = BASE_DIR / "outputs"
TEMP_DIR = BASE_DIR / "temp"
UPLOADS_DIR = BASE_DIR / "uploads"
UI_PATH = BASE_DIR / "creatorplus" / "UI" / "index.html"
OUTPUTS_DIR.mkdir(parents=True, exist_ok=True)
TEMP_DIR.mkdir(parents=True, exist_ok=True)
UPLOADS_DIR.mkdir(parents=True, exist_ok=True)
HOST = os.getenv("CREATORPLUS_HOST", "127.0.0.1")
PORT = int(os.getenv("CREATORPLUS_PORT", "7861"))
DEFAULT_SETTINGS = {
"category": "storytelling",
"tone": "engaging",
"durationSec": 30,
"aspectRatio": "9:16",
"voiceEngine": "standard",
"voiceProvider": "auto",
"language": "en",
"musicVolume": 0.25,
"duckingDb": -8,
"includeSubtitles": True,
}
CATEGORY_TEMPLATES = [
{"id": "narration", "label": "Narration / Voiceover"},
{"id": "storytelling", "label": "Storytelling"},
{"id": "teaching", "label": "Teaching / Explainers"},
{"id": "history", "label": "History"},
{"id": "social", "label": "Social Clips / Reels"},
{"id": "custom", "label": "Custom"},
]