mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
13 lines
302 B
Python
13 lines
302 B
Python
import json
|
|
|
|
|
|
def handler(event, context):
|
|
"""
|
|
This is an ascynchonous lambda handler that will run the model engine
|
|
:param event:
|
|
:param context:
|
|
:return:
|
|
"""
|
|
for record in event["Records"]:
|
|
body = json.loads(record["body"])
|
|
asyncio.run(model_engine(body))
|