Spaces:
Runtime error
Runtime error
| """Hugging Face Space entrypoint for the Kneiff caption workbench.""" | |
| from __future__ import annotations | |
| from pathlib import Path | |
| import sys | |
| ROOT = Path(__file__).resolve().parent | |
| SRC_ROOT = ROOT / "src" | |
| if str(SRC_ROOT) not in sys.path: | |
| sys.path.insert(0, str(SRC_ROOT)) | |
| from kneiff.app.workbench import build_demo # noqa: E402 | |
| demo = build_demo() | |
| if __name__ == "__main__": | |
| demo.launch() | |