Skip to content

Instantly share code, notes, and snippets.

@kingsleyzissou
Last active November 6, 2021 22:03
Show Gist options
  • Save kingsleyzissou/eac047d99c4100f7b83a08cde306b007 to your computer and use it in GitHub Desktop.
Save kingsleyzissou/eac047d99c4100f7b83a08cde306b007 to your computer and use it in GitHub Desktop.
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