Spaces:
Sleeping
Sleeping
Download app/models/const.py from kodnuke/youtube-bot: direct link, hf CLI and curl.
- Browser
- Download file 711 Bytes
-
https://huggingface.co/spaces/kodnuke/youtube-bot/resolve/main/app/models/const.py
- Command line
-
hf download hf://spaces/kodnuke/youtube-bot/app/models/const.py
-
curl -L -o const.py https://huggingface.co/spaces/kodnuke/youtube-bot/resolve/main/app/models/const.py
711 Bytes
| PUNCTUATIONS = [ | |
| "?", | |
| ",", | |
| ".", | |
| "、", | |
| ";", | |
| ":", | |
| "!", | |
| "…", | |
| "?", | |
| ",", | |
| "。", | |
| "、", | |
| ";", | |
| ":", | |
| "!", | |
| "...", | |
| # 阿拉伯语常用标点也应作为自然断句点,避免脚本文本和 edge-tts | |
| # 返回的字幕停顿边界不一致,导致后续逐行匹配失败。 | |
| "،", | |
| "؛", | |
| "؟", | |
| ] | |
| TASK_STATE_FAILED = -1 | |
| TASK_STATE_COMPLETE = 1 | |
| TASK_STATE_PROCESSING = 4 | |
| CROSS_POST_STATE_PENDING = "pending" | |
| CROSS_POST_STATE_PROCESSING = "processing" | |
| CROSS_POST_STATE_COMPLETE = "complete" | |
| CROSS_POST_STATE_FAILED = "failed" | |
| FILE_TYPE_VIDEOS = ["mp4", "mov", "mkv", "webm"] | |
| FILE_TYPE_IMAGES = ["jpg", "jpeg", "png", "bmp"] | |