Download core/constants.py from malikrf22/uraura: direct link, hf CLI and curl.
- Browser
- Download file 2.18 kB
-
https://huggingface.co/spaces/malikrf22/uraura/resolve/main/core/constants.py
- Command line
-
hf download hf://spaces/malikrf22/uraura/core/constants.py
-
curl -L -o constants.py https://huggingface.co/spaces/malikrf22/uraura/resolve/main/core/constants.py
2.18 kB
| from __future__ import annotations | |
| MODEL_MODE_PRO_ONLY = 1 | |
| MODEL_MODE_FAST_ONLY = 2 | |
| MODEL_MODE_BOTH = 3 | |
| MODEL_MODE_IMAGE_ENABLED = 4 | |
| MODEL_MODE_IMAGE_ONLY = 5 | |
| MODEL_MODE_EXPIRED = 0 | |
| ENDPOINT_LEGACY = "seedance-1-5-pro-251215" | |
| ENDPOINT_PRO = "dreamina-seedance-2-0-260128" | |
| ENDPOINT_FAST = "dreamina-seedance-2-0-fast-260128" | |
| UPLOAD_URL = "https://arkbff-ap-southeast1.console.byteplus.com/api/2024-10-01/UploadArkTosFile" | |
| CREATE_TASK_URL = "https://modelark-api.console.byteplus.com/ark/bff/api/ap-southeast-1/2024-01-29/CreateVideoGenTask" | |
| GET_TASK_URL = "https://modelark-api.console.byteplus.com/ark/bff/api/ap-southeast-1/2024-01-29/GetVideoGenTask" | |
| LIST_VIDEO_TASKS_URL = "https://modelark-api.console.byteplus.com/ark/bff/api/ap-southeast-1/2024-01-29/ListVideoGenTasks" | |
| LIST_IMAGE_RECORDS_URL = "https://modelark-api.console.byteplus.com/ark/bff/api/ap-southeast-1/2024-01-29/ListImageGenerationRecords" | |
| IMAGE_GEN_URL = "https://modelark-api.console.byteplus.com/ark/bff/api/ap-southeast-1/2024/CreateImageGeneration" | |
| IMAGE_UPLOAD_URL = "https://arkbff-ap-southeast1.console.byteplus.com/api/2024-10-01/UploadArkTosFile" | |
| IMAGE_MODEL_CONFIG = { | |
| "Seedream 4": { | |
| "endpoint_id": "seedream-4-0-250828", | |
| "max_images": 3, | |
| "resolutions": ["2K", "4K"], | |
| }, | |
| "Seedream 4.5": { | |
| "endpoint_id": "seedream-4-5-251128", | |
| "max_images": 3, | |
| "resolutions": ["2K", "4K"], | |
| }, | |
| "Seedream 5 Lite": { | |
| "endpoint_id": "seedream-5-0-260128", | |
| "max_images": 3, | |
| "resolutions": ["2K"], | |
| }, | |
| } | |
| FALLBACK_MODEL_NAMES = [ | |
| "deepseek-v3-1", | |
| "deepseek-v3-2", | |
| "deepseek-r1", | |
| "glm-4-7", | |
| "gpt-oss-120b", | |
| "kimi-k2", | |
| "seed-1-6", | |
| "seed-1-6-flash", | |
| "seed-1-8", | |
| "seed-2-0-lite", | |
| "seed-2-0-mini", | |
| "seed-2-0-pro", | |
| "seed-translation", | |
| "seedance-1-0-lite-i2v", | |
| "seedance-1-0-lite-t2v", | |
| "seedance-1-0-pro", | |
| "seedance-1-0-pro-fast", | |
| "seedance-1-5-pro", | |
| "seedream-3-0-t2i", | |
| "seedream-4-0", | |
| "seedream-4-5", | |
| "seedream-5-0", | |
| "seedEdit-3-0-i2i", | |
| "skylark-embedding-vision", | |
| "skylark-pro", | |
| "skylark-vision", | |
| "seed-2-0-code", | |
| ] | |