pc-ddpm-alberta / app.py
jbobym's picture
space deploy: trim short_description to fit HF 60-char cap
93ed35a
raw
history blame contribute delete
561 Bytes
"""HF Spaces entry point. The demo lives in `deployment/gradio_app.py`;
this shim exists because HF Spaces expects `app.py` at the repo root.
Run locally with `python app.py` or `python deployment/gradio_app.py` —
either path lands at the same `demo` object."""
from __future__ import annotations
import os
import sys
ROOT = os.path.dirname(os.path.abspath(__file__))
sys.path.insert(0, os.path.join(ROOT, "src"))
sys.path.insert(0, os.path.join(ROOT, "deployment"))
from gradio_app import demo # noqa: E402
if __name__ == "__main__":
demo.launch()