o f@srddlZddlmZddlmZddlmZddlmZddl m Z defdd Z d d d Z e d kr7e dSdS)N)FastAPI) StaticFiles) client_router)settings)CORSMiddlewarereturncCsNtdddd}|jtdgddgdgd|jtd|jd td d d d |S)z-Create and configure the FastAPI application.zClient ServicezPPAI HACKATHONz1.0.0)titleZ descriptionversion*T)Z allow_originsZallow_credentialsZ allow_methodsZ allow_headers)Zrouterz/staticz client/static)Z directoryZstatic)name)rZadd_middlewarerZinclude_routerrZmountrappr&/home/martin/ppai_team4/client/main.py create_app s rcCst}tj|dtjddS)z3Main function to set up logging and run the server.z0.0.0.0)r ZhostZportN)ruvicornrunrZ SERVICE_PORTr rrrmainsr__main__)rN)rZfastapirZfastapi.staticfilesrZclient.routersrZ client.configrZfastapi.middleware.corsrrr__name__rrrrs