fddlZddlmZddlmZddlmZddlmZddl m Z defdZ d d Z e d kr e dSdS) N)FastAPI) StaticFiles) client_router)settings)CORSMiddlewarereturnctddd}|tdgddgdg|t|d t d d |S)z-Create and configure the FastAPI application.zClient ServicezPPAI HACKATHONz1.0.0)title descriptionversion*T) allow_originsallow_credentials allow_methods allow_headers)routerz/staticz client/static) directorystatic)name)radd_middlewarerinclude_routerrmountrapps &/home/martin/ppai_team4/client/main.py create_appr s $   C eee m,,,IIi???hIOOO Jcdt}tj|dtjdS)z3Main function to set up logging and run the server.z0.0.0.0)rhostportN)ruvicornrunr SERVICE_PORTrs rmainr$s+<r-s++++++((((((""""""222222G&EEEE zDFFFFFr