Skip to content

Commit

Permalink
still fixing json issue
Browse files Browse the repository at this point in the history
  • Loading branch information
damilojohn committed Aug 15, 2023
1 parent 6de04d8 commit afbb558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lambda_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def GetEmbeddingsFromS3():
def handler(event, _context):
"""main model prediction api"""
data = json.loads(event)
prompt = data.get('prompt')
prompt = data["prompt"]
if event is None:
return {'statusCode': 400, 'message': 'no input prompt was provided'}
logger.info('downloading embeddings from s3....')
Expand Down

0 comments on commit afbb558

Please sign in to comment.