chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
"""
|
||||
Lambda handler for a txtai API instance
|
||||
"""
|
||||
|
||||
from mangum import Mangum
|
||||
|
||||
from txtai.api import app, start
|
||||
|
||||
# pylint: disable=C0103
|
||||
# Create FastAPI application instance wrapped by Mangum
|
||||
handler = None
|
||||
if not handler:
|
||||
# Start application
|
||||
start()
|
||||
|
||||
# Create handler
|
||||
handler = Mangum(app, lifespan="off")
|
||||
Reference in New Issue
Block a user