Spaces:
Sleeping
Sleeping
File size: 629 Bytes
775befb 4904e85 775befb 4904e85 775befb 4904e85 775befb 4904e85 775befb 4904e85 775befb 4904e85 775befb 4904e85 775befb 4904e85 775befb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | """Sample inference launcher for the 911 dispatch project.
Use this file as a runnable reference from samplematerial.
For submission, the authoritative script is the root-level inference.py.
"""
from __future__ import annotations
import asyncio
import sys
from pathlib import Path
def _project_root() -> Path:
return Path(__file__).resolve().parents[1]
def main() -> int:
root = _project_root()
if str(root) not in sys.path:
sys.path.insert(0, str(root))
from inference import main as run_inference
return asyncio.run(run_inference())
if __name__ == "__main__":
raise SystemExit(main()) |