"""Wan 2.6 (image to video) — 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": "Wan 2.6 (image to video)", "model": "alibaba/wan-2.6/image-to-video", "output": "video", "tagline": "Alibaba Wan 2.6, animate a still image.", "fields": [ { "kind": "image", "key": "image", "label": "Input image" }, { "kind": "prompt", "key": "prompt", "label": "Prompt", "placeholder": "Describe what you want to generate" }, { "kind": "choice", "key": "resolution", "label": "Resolution", "choices": [ "480p", "720p", "1080p" ], "default": "720p" }, { "kind": "choice", "key": "duration", "label": "Duration (s)", "choices": [ 5, 10 ], "default": 5 }, { "kind": "choice", "key": "shot_type", "label": "Shot type", "choices": [ "single", "multi" ], "default": "single" }, { "kind": "bool", "key": "enable_prompt_expansion", "label": "Expand prompt automatically", "default": False }, { "kind": "seed", "key": "seed" } ], "campaign": "wan_image_to_video" } SPEC["css"] = Path(__file__).with_name("style.css").read_text(encoding="utf-8") if __name__ == "__main__": spaceui.launch(spaceui.build(SPEC), SPEC["css"])