Spaces:
Running on Zero
Running on Zero
File size: 702 Bytes
41ff959 1db10da 41ff959 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | from __future__ import annotations
import os
os.environ.setdefault("GRADIO_SSR_MODE", "false")
import spaces # noqa: F401 - must patch torch before model modules are imported
from src.demo.hf_runtime import InfiniSplatRuntime
from src.demo.hf_ui import APP_CSS, APP_THEME, OUTPUT_ROOT, create_demo
runtime = InfiniSplatRuntime.load()
demo = create_demo(runtime)
if __name__ == "__main__":
demo.launch(
server_name="0.0.0.0",
server_port=int(os.environ.get("PORT", "7860")),
allowed_paths=[str(OUTPUT_ROOT)],
max_file_size="20mb",
show_error=False,
ssr_mode=False,
footer_links=[],
theme=APP_THEME,
css=APP_CSS,
)
|