Spaces:
Runtime error
Runtime error
File size: 871 Bytes
05b45a5 |
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 42 43 44 |
import os
# API Configuration
API_HOST = os.getenv("API_HOST", "kokoro-tts")
API_PORT = os.getenv("API_PORT", "8880")
API_URL = f"http://{API_HOST}:{API_PORT}"
# File paths
INPUTS_DIR = "app/ui/data/inputs"
OUTPUTS_DIR = "app/ui/data/outputs"
# Create directories if they don't exist
os.makedirs(INPUTS_DIR, exist_ok=True)
os.makedirs(OUTPUTS_DIR, exist_ok=True)
# Audio formats
AUDIO_FORMATS = ["mp3", "wav", "opus", "flac"]
# UI Theme
THEME = "monochrome"
CSS = """
.gradio-container {
max-width: 1000px;
margin: auto;
}
.banner-container {
background: transparent !important;
border: none !important;
box-shadow: none !important;
margin-bottom: 2rem;
}
.banner-container img {
width: 100%;
max-width: 600px;
border-radius: 10px;
margin: 20px auto;
display: block;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
"""
|