Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
AWS Lambda with Librosa
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