"""Seedream 4.5 — 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 4.5", "model": "bytedance/seedream-v4.5", "output": "image", "tagline": "The updated Seedream checkpoint from ByteDance.", "fields": [ { "kind": "prompt", "key": "prompt", "label": "Prompt", "placeholder": "Describe what you want to generate" }, { "kind": "choice", "key": "size", "label": "Size", "choices": [ "1024*1024", "1328*1328", "2048*2048" ], "default": "2048*2048" } ], "extra": { "enable_base64_output": False, "enable_sync_mode": False } } SPEC["css"] = Path(__file__).with_name("style.css").read_text(encoding="utf-8") if __name__ == "__main__": spaceui.launch(spaceui.build(SPEC), SPEC["css"])