File size: 561 Bytes
93ed35a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""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()