bria-expand / app.py
chengzeyi's picture
Add UTM attribution to outbound wavespeed.ai links
7e00694
Raw
History Blame Contribute Delete
1.3 kB
"""Image Expand — 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": "Image Expand",
"model": "bria/expand",
"output": "image",
"tagline": "Extend an image beyond its original frame (outpainting).",
"fields": [
{
"kind": "image",
"key": "image",
"label": "Input image"
},
{
"kind": "choice",
"key": "aspect_ratio",
"label": "Target aspect ratio",
"choices": [
"16:9",
"9:16",
"1:1",
"4:3",
"3:4"
],
"default": "16:9"
}
],
"extra": {
"enable_base64_output": False,
"enable_sync_mode": False
},
"campaign": "bria_expand"
}
SPEC["css"] = Path(__file__).with_name("style.css").read_text(encoding="utf-8")
if __name__ == "__main__":
spaceui.launch(spaceui.build(SPEC), SPEC["css"])