"""Nirnoy try-it page (ZeroGPU). The app and the models are private: this loader fetches the app with the Space's token.""" import os import sys import spaces # noqa: F401 (ZeroGPU: imported before torch) from huggingface_hub import snapshot_download sys.path.insert(0, snapshot_download(os.environ.get("APP_REPO", "bbbipul/nirnoy-space-app"), token=os.environ["HF_TOKEN"])) import nirnoy_app # noqa: E402 nirnoy_app.main()