Spaces:
Sleeping
Sleeping
Download config/setting.toml from glucky1985/FLOW2API: direct link, hf CLI and curl.
- Browser
- Download file 843 Bytes
-
https://huggingface.co/spaces/glucky1985/FLOW2API/resolve/main/config/setting.toml
- Command line
-
hf download hf://spaces/glucky1985/FLOW2API/config/setting.toml
-
curl -L -o setting.toml https://huggingface.co/spaces/glucky1985/FLOW2API/resolve/main/config/setting.toml
843 Bytes
| [global] | |
| api_key = "han1234" | |
| admin_username = "admin" | |
| admin_password = "admin" | |
| [flow] | |
| labs_base_url = "https://labs.google/fx/api" | |
| api_base_url = "https://aisandbox-pa.googleapis.com/v1" | |
| timeout = 120 | |
| poll_interval = 3.0 | |
| max_poll_attempts = 200 | |
| [server] | |
| host = "0.0.0.0" | |
| port = 7860 | |
| [debug] | |
| enabled = false | |
| log_requests = true | |
| log_responses = true | |
| mask_token = true | |
| [proxy] | |
| proxy_enabled = false | |
| proxy_url = "" | |
| [generation] | |
| image_timeout = 300 | |
| video_timeout = 1500 | |
| [admin] | |
| error_ban_threshold = 3 | |
| [cache] | |
| enabled = false | |
| timeout = 7200 # 缓存超时时间(秒), 默认2小时 | |
| base_url = "" # 缓存文件访问的基础URL, 留空则使用服务器地址 | |
| [captcha] | |
| captcha_method = "browser" # 打码方式: yescaptcha 或 browser | |
| yescaptcha_api_key = "" # YesCaptcha API密钥 | |
| yescaptcha_base_url = "https://api.yescaptcha.com" | |