PCNUSMSE's picture
Upload folder using huggingface_hub
4e37375 verified
raw
history blame
809 Bytes
# 生产环境配置
app:
name: "音频转文字服务"
version: "1.0.0"
debug: false
host: "0.0.0.0"
port: 8080
max_file_size: 2147483648 # 2GB
max_files_count: 100
concurrent_tasks: 10
# OSS配置
oss:
endpoint: "oss-cn-beijing.aliyuncs.com"
bucket_name: "audio-transcript-prod"
upload_timeout: 300
url_expire_hours: 24
temp_prefix: "temp/audio"
auto_cleanup_days: 7
# 阿里云百炼API配置
dashscope:
base_url: "https://dashscope.aliyuncs.com/api/v1"
model: "paraformer-v2"
timeout: 300
max_retries: 5
retry_delay: 10
language_hints: ["zh", "en"]
# 任务配置
task:
status_check_interval: 5
max_processing_time: 3600 # 1小时
queue_size: 2000
# 日志配置
logging:
level: "INFO"
format: "structured"
file_max_size: "50MB"
backup_count: 10