Spaces:
Sleeping
Sleeping
Download app.py from wavespeed/ultimate-video-upscaler: direct link, hf CLI and curl.
- Browser
- Download file 2.05 kB
-
https://huggingface.co/spaces/wavespeed/ultimate-video-upscaler/resolve/main/app.py
- Command line
-
hf download hf://spaces/wavespeed/ultimate-video-upscaler/app.py
-
curl -L -o app.py https://huggingface.co/spaces/wavespeed/ultimate-video-upscaler/resolve/main/app.py
2.05 kB
| """Ultimate Video Upscaler — 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": "Ultimate Video Upscaler", | |
| "model": "wavespeed-ai/ultimate-video-upscaler", | |
| "output": "video", | |
| "tagline": "Upscale any video to 1080p, 2K or 4K with restored fine detail.", | |
| "fields": [ | |
| { | |
| "kind": "video", | |
| "key": "video", | |
| "label": "Input video" | |
| }, | |
| { | |
| "kind": "choice", | |
| "key": "target_resolution", | |
| "label": "Target resolution", | |
| "choices": [ | |
| "720p", | |
| "1080p", | |
| "2k", | |
| "4k" | |
| ], | |
| "default": "4k" | |
| } | |
| ], | |
| "promo": { | |
| "label": "Open Ultimate Video Upscaler on WaveSpeed", | |
| "path": "/tools/ultimate-video-upscaler", | |
| "desc": "Draft AI video at 480p or 720p, then upscale the take you love. Below: a 480p clip (left) and its 4K upscale (right)." | |
| }, | |
| "showcase": [ | |
| { | |
| "src": "https://huggingface.co/spaces/wavespeed/ultimate-video-upscaler/resolve/main/media/1790903936921698253_6vhqAJT2.webp", | |
| "caption": "480p enlarged vs. Ultimate Video Upscaler 4K", | |
| "wide": True | |
| }, | |
| { | |
| "src": "https://huggingface.co/spaces/wavespeed/ultimate-video-upscaler/resolve/main/media/1790903938747890335_7V4dOX7h.webp", | |
| "caption": "Fine detail restored in the 4K upscale", | |
| "wide": True | |
| } | |
| ], | |
| "campaign": "ultimate_video_upscaler" | |
| } | |
| SPEC["css"] = Path(__file__).with_name("style.css").read_text(encoding="utf-8") | |
| if __name__ == "__main__": | |
| spaceui.launch(spaceui.build(SPEC), SPEC["css"]) | |