Xinfan Chen
2026-05-12 76e0c0bdb17d547884b147f00fde58cad38eefb6
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
# -*- coding: utf-8 -*-
"""Compatibility entrypoint for the AIGC-Claw FastAPI server.
 
The application is organized under the ``api`` package following the
Pixelle-Video router/schema layout, while this file keeps the historical
``python api_server.py`` startup command working.
"""
 
import os
import sys
 
_backend_dir = os.path.dirname(os.path.abspath(__file__))
if _backend_dir not in sys.path:
    sys.path.insert(0, _backend_dir)
 
import uvicorn
 
from api.app import app
from config import settings
 
 
def main():
    uvicorn.run(app, host=settings.HOST, port=settings.PORT)
 
 
if __name__ == "__main__":
    main()