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 numpy as np | |
import cv2 | |
import boto3 | |
import json | |
# Rekognition Detect faces | |
def detect_faces(photo): | |
client=boto3.client('rekognition') |
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 numpy as np | |
import cv2 | |
import boto3 | |
import json | |
# Rekognition Detect faces | |
def detect_faces(photo): | |
client=boto3.client('rekognition') |
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
def foo(): | |
return("Hello ") | |
def bar(): | |
return("World") |
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
# For running a simple flask app | |
# Run via; export FLASK_APP = simple_flask_example.py | |
# python -m flask run | |
from flask import Flask, json | |
app = Flask(__name__) | |
def do_something(): | |
# Go do something, normally this is seperated out in a seperate file / class |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": "*", | |
"Resource": "*", | |
"Condition": { | |
"IpAddress": { | |
"aws:SourceIp": "<your-ip-goes-here>" |