msg encrypted ai
Feat/sunday sprint 2 (#15)
a7832f0
raw
history blame contribute delete
610 Bytes
"""Hugging Face Gradio SDK entry point (ZeroGPU / Gradio Spaces)."""
import os
# HF Spaces default SSR to True; Node proxy then binds 7860 and Python falls back to 7861.
os.environ["GRADIO_SSR_MODE"] = "False"
import sys
from pathlib import Path
_ROOT = Path(__file__).resolve().parent
for _src in (
"apps/gradio-space/src",
"libs/inference/src",
"libs/researchmind/src",
"libs/agent/src",
"libs/echocoach/src",
):
_path = str(_ROOT / _src)
if _path not in sys.path:
sys.path.insert(0, _path)
from gradio_space.server import main
if __name__ == "__main__":
main()