diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2020-09-10 12:39:26 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2020-09-10 12:39:26 +0530 |
commit | 3f0346b2bb57a97f177a13ceb709629545a0d87c (patch) | |
tree | 87b1de424ce2d026c1283afd389af909893703de | |
parent | 4b48546cea6c894d735f6c9e9d271f4f6a15a57e (diff) |
removed upload folder from config.ini
-rw-r--r-- | app/__init__.py | 1 | ||||
-rw-r--r-- | app/views.py | 5 | ||||
-rw-r--r-- | config.ini | 1 |
3 files changed, 3 insertions, 4 deletions
diff --git a/app/__init__.py b/app/__init__.py index 1b2171c..dd2f7ff 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -9,7 +9,6 @@ DB_PORT = config['DATABASE']['PORT'] DB_USER = config['DATABASE']['USER'] DB_PASSWORD = config['DATABASE']['PASSWORD'] DB_NAME = config['DATABASE']['NAME'] -UPLOAD_FOLDER = config['FILES']['UPLOAD_FOLDER'] LOG_FOLDER = config['FILES']['LOG_FOLDER'] INSTANT_EXEC = config['EXECUTION']['INSTANT'] LSTM = config['FEATURES']['LSTM'] diff --git a/app/views.py b/app/views.py index c272e73..698d621 100644 --- a/app/views.py +++ b/app/views.py @@ -127,8 +127,8 @@ def status(): done="Queued" if protein_name == None: protein_name = r[6] - - PDFReport = "/static/uploads/reports/" + str(jobID) + ".pdf" + + PDFReport = "./app/static/uploads/reports/" + str(jobID) + ".pdf" AndroidModel = "/static/uploads/3DModels/" + str(jobID) + ".gltf" iOSModel = "/static/uploads/3DModels/" + str(jobID) + ".usdz" @@ -247,6 +247,7 @@ def generate_pdbqts(): return render_template('pdbqt_form.html',form=myform) +tfWorking = 0 if app.config['LSTM']: try: import tensorflow as tf @@ -16,7 +16,6 @@ LOG = True SAVE_LOGS = False [FILES] -UPLOAD_FOLDER = ./app/static/uploads LOG_FOLDER = ./app/logs/ [EXECUTION] |