File size: 369 Bytes
cb92d2b ff9325e cb92d2b ff9325e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
from fastapi import FastAPI
from config import args
from device import device, torch_dtype
from app_init import init_app
from user_queue import user_data_events
from util import get_pipeline_class
app = FastAPI()
pipeline_class = get_pipeline_class(args.pipeline)
pipeline = pipeline_class(args, device, torch_dtype)
init_app(app, user_data_events, args, pipeline)
|