File size: 442 Bytes
b9dda80
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from __future__ import annotations

import os

try:
    # When this folder is uploaded as Space root.
    from api import app
except Exception:  # pragma: no cover
    # Local fallback when running from workspace root.
    from core.voice_intelligence.api import app


if __name__ == "__main__":
    import uvicorn

    port = int(os.environ.get("PORT", "7860"))
    uvicorn.run(app, host="0.0.0.0", port=port, reload=False)