We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa85370 commit 2b414f0Copy full SHA for 2b414f0
webService/app/__init__.py
@@ -1,11 +1,13 @@
1
# -*- coding: utf-8 -*-
2
from flask import Flask
3
+from flask_cors import CORS
4
5
from . import settings
6
from .module_one import module_one
7
8
# create app
9
app = Flask(__name__)
10
+CORS(app)
11
app.config['MAX_CONTENT_LENGTH'] = 3 * 1024 * 1024
12
app.config.from_object(settings)
13
webService/requirements.txt
@@ -4,6 +4,7 @@ dlib==19.7.0
face-recognition==1.0.0
face-recognition-models==0.3.0
Flask==0.12.2
+Flask-Cors==3.0.3
itsdangerous==0.24
Jinja2==2.10
MarkupSafe==1.0
@@ -12,4 +13,5 @@ numpy==1.13.3
olefile==0.44
14
Pillow==4.3.0
15
scipy==1.0.0
16
+six==1.11.0
17
Werkzeug==0.12.2
0 commit comments