"""
配置文件
"""

# 文件上传配置
UPLOAD_FOLDER = 'uploads'
PROCESSED_FOLDER = 'processed'
MAX_FILE_SIZE = 500 * 1024 * 1024  # 500MB

# 视频处理配置
VIDEO_SEGMENT_DURATION = 30  # 秒
VIDEO_KEYFRAME_COUNT = 10  # 提取的关键帧数量

# PDF处理配置
PDF_IMAGE_DPI = 200  # 图片分辨率

# 音频处理配置
AUDIO_CHUNK_LENGTH = 30000  # 毫秒
SPEECH_RECOGNITION_LANGUAGE = 'zh-CN'  # 语音识别语言

# 概念提取配置
MAX_CONCEPTS = 30  # 最多返回的概念数量
MIN_CONCEPT_FREQUENCY = 2  # 概念最小出现频率

# 允许的文件扩展名
ALLOWED_VIDEO_EXTENSIONS = {'mp4', 'avi', 'mov', 'mkv'}
ALLOWED_PDF_EXTENSIONS = {'pdf'}


