Spaces:
Running
Running
Upload 3 files
Browse files- app.py +5 -0
- config.py +24 -0
- requirements.txt +7 -0
app.py
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from app import app
|
2 |
+
|
3 |
+
|
4 |
+
if __name__ == '__main__':
|
5 |
+
app.run()
|
config.py
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
from os import environ
|
3 |
+
|
4 |
+
class Config(object):
|
5 |
+
DUBUG = False
|
6 |
+
TESTING = False
|
7 |
+
|
8 |
+
basedir = os.path.abspath(os.path.dirname(__file__))
|
9 |
+
|
10 |
+
SECRET_KEY = 'pianalytix'
|
11 |
+
|
12 |
+
UPLOADS = '/home/username/app/app/static/uploads'
|
13 |
+
|
14 |
+
SESSION_COOKIE_SECURE = True
|
15 |
+
DEFAULT_THEME = None
|
16 |
+
|
17 |
+
|
18 |
+
class DevelopmentConfig(Config):
|
19 |
+
DEBUG = True
|
20 |
+
SESSION_COOKIE_SECURE = False
|
21 |
+
|
22 |
+
|
23 |
+
class DebugConfig(Config):
|
24 |
+
DEBUG = False
|
requirements.txt
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Flask==1.1.1
|
2 |
+
imutils==0.5.3
|
3 |
+
Keras==2.4.0
|
4 |
+
opencv-python==4.4.0.46
|
5 |
+
Pillow==8.0.1
|
6 |
+
tensorflow==2.3.1
|
7 |
+
scikit-image==0.17.2
|