File size: 409 Bytes
afe67aa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""
Server entry point for IndicScriptureQA — OpenEnv compatible.

Exposes the FastAPI app and a `main()` callable for the `server` script.
"""

import uvicorn

from main import app  # noqa: F401 — re-export for openenv discovery


def main() -> None:
    """Entry point used by `[project.scripts] server`."""
    uvicorn.run("main:app", host="0.0.0.0", port=7860)


if __name__ == "__main__":
    main()