Skip to content

Instantly share code, notes, and snippets.

View kingsleyzissou's full-sized avatar

Gianluca Zuccarelli kingsleyzissou

View GitHub Profile
@kingsleyzissou
kingsleyzissou / lambda_handler.py
Last active November 6, 2021 22:03
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
import Ajv from 'ajv';
import { JSONSchemaBridge } from 'uniforms-bridge-json-schema';
const ajv = new Ajv();
ajv.addFormat('date-time', {
validate: (dateTimeString) => {
console.log('here', dateTimeString);
return dateTimeRegex.test(dateTimeString);
}