-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.py
22 lines (18 loc) · 946 Bytes
/
run.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import os
import sys
# visualizations_dir = os.path.dirname(os.path.dirname(os.path.abspath("visualizations")))
visualizations_dir = os.path.abspath("visualizations")
sys.path.append(visualizations_dir) # In case of error, put manually the path for visualizations
from src import app
from src.config import settings
from visualizations import PreprocessedView
if __name__ == "__main__":
debug=False
if settings.ENV == "local":
debug=True
if settings.GENERATE_VIEWS:
students = ["Arthur","Enzo" ,"Gabriel","Miguel","Carlos","Heitor","Pedro","Henrique","Jorge","Francisco","Caio","Lucas","Rafael","Samuel","Diego","Alana","Luana","Dandara","Laura","Marcela","Maria","Eduarda","Clara","Alice","Ana","Sandra","Amanda","Camila","Valentina","Joana"]
instance = PreprocessedView()
instance.generate_all_views(students)
# app.run(debug=True,port=8558)
app.run(host='0.0.0.0',port=8558,debug=debug)