cred = credentials.Certificate( 'project-anti-alz-firebase-adminsdk-zlh54-decaa0ce0a.json') # firebase_admin.initialize_app(cred, {'databaseURL' : 'https://project-anti-alz.firebaseio.com/'}) root = db.reference() # Imports the Google Cloud client library from google.cloud import storage # The name for the new bucket bucket_name = 'history-images-3519435695' # bucket = storage_client.create_bucket(bucket_name) app = Flask(__name__) CORS(app) bootstrap = Bootstrap(app) client = APIClient("people_13") epoch = lambda: int(time.time() * 1000) @app.route("/") def index(): return render_template("index.html") @app.route('/detect-face', methods=['POST']) def detect_face(): img_content = request.data filename = md5(img_content).hexdigest() img_path = "uploads/" + filename + ".jpg"