Last active
November 6, 2021 22:03
-
-
Save kingsleyzissou/eac047d99c4100f7b83a08cde306b007 to your computer and use it in GitHub Desktop.
AWS Lambda with Librosa
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import sys | |
import os | |
## Mount EFS path before attempting | |
## to import the next dependencies | |
sys.path.append('/mnt/access/pkgs') | |
import numpy as np | |
import librosa | |
def lambda_handler(event, context): | |
versions = { | |
'numpy': np.__version__, | |
'librosa': librosa.__version__ | |
} | |
return { | |
'statusCode': 200, | |
'body': json.dumps(versions) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment