Skip to content

Instantly share code, notes, and snippets.

@RoaldSchuring
Last active July 13, 2019 13:34
Show Gist options
  • Save RoaldSchuring/a9c7c8e9a3d7a04719f490fcc8bade9b to your computer and use it in GitHub Desktop.
Save RoaldSchuring/a9c7c8e9a3d7a04719f490fcc8bade9b to your computer and use it in GitHub Desktop.
import_functions
import json
import boto3
import pandas as pd
import numpy as np
from six import BytesIO
def lambda_handler(event, context):
client = boto3.client('s3')
runtime = boto3.client('runtime.sagemaker')
data = json.loads(json.dumps(event))
payload = data['instances']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment