Spaces:
Running
Running
Download app.py from wavespeed/seedream-v5-pro: direct link, hf CLI and curl.
- Browser
- Download file 1.88 kB
-
https://huggingface.co/spaces/wavespeed/seedream-v5-pro/resolve/main/app.py
- Command line
-
hf download hf://spaces/wavespeed/seedream-v5-pro/app.py
-
curl -L -o app.py https://huggingface.co/spaces/wavespeed/seedream-v5-pro/resolve/main/app.py
1.88 kB
| """Seedream 5.0 Pro — powered by WaveSpeed AI. | |
| Generated from _shared/apps.py — edit the spec there, not this file. | |
| """ | |
| import os | |
| # Set before gradio is imported: its telemetry client reads these at import time. | |
| os.environ.setdefault("GRADIO_ANALYTICS_ENABLED", "False") | |
| os.environ.setdefault("HF_HUB_DISABLE_TELEMETRY", "1") | |
| from pathlib import Path # noqa: E402 | |
| import spaceui # noqa: E402 | |
| SPEC = { | |
| "title": "Seedream 5.0 Pro", | |
| "model": "bytedance/seedream-v5.0-pro", | |
| "output": "image", | |
| "tagline": "ByteDance's flagship image model. Text to image, up to 2K.", | |
| "fields": [ | |
| { | |
| "kind": "prompt", | |
| "key": "prompt", | |
| "label": "Prompt", | |
| "placeholder": "Describe what you want to generate" | |
| }, | |
| { | |
| "kind": "choice", | |
| "key": "aspect_ratio", | |
| "label": "Aspect ratio", | |
| "choices": [ | |
| "16:9", | |
| "9:16", | |
| "1:1", | |
| "4:3", | |
| "3:4" | |
| ], | |
| "default": "1:1" | |
| }, | |
| { | |
| "kind": "choice", | |
| "key": "resolution", | |
| "label": "Resolution", | |
| "choices": [ | |
| "1k", | |
| "1.5k", | |
| "2k" | |
| ], | |
| "default": "1k" | |
| }, | |
| { | |
| "kind": "choice", | |
| "key": "output_format", | |
| "label": "Format", | |
| "choices": [ | |
| "jpeg", | |
| "png" | |
| ], | |
| "default": "jpeg" | |
| } | |
| ], | |
| "extra": { | |
| "enable_base64_output": False, | |
| "enable_sync_mode": False | |
| }, | |
| "campaign": "seedream_v5_pro" | |
| } | |
| SPEC["css"] = Path(__file__).with_name("style.css").read_text(encoding="utf-8") | |
| if __name__ == "__main__": | |
| spaceui.launch(spaceui.build(SPEC), SPEC["css"]) | |