aboutsummaryrefslogtreecommitdiff
path: root/app/views.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2020-08-04 21:28:56 +0530
committerNavan Chauhan <navanchauhan@gmail.com>2020-08-04 21:28:56 +0530
commitde479dd42130d67fb15f32beb99bec29b356792a (patch)
tree743cd2fdb0b1e35619f105ebca7d1c6b52914b0a /app/views.py
parenta309a4607aa2aba63ea15c9aa9d9c7a7f2e99551 (diff)
added animations
Diffstat (limited to 'app/views.py')
-rw-r--r--app/views.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views.py b/app/views.py
index 2532736..6af1ee6 100644
--- a/app/views.py
+++ b/app/views.py
@@ -110,6 +110,7 @@ def wtform():
flash_errors(myform)
return render_template('wtform.html', form=myform)
+tfWorking = -1
try:
from lstm_chem.utils.config import process_config
@@ -120,8 +121,11 @@ try:
gen = LSTMChemGenerator(modeler)
print("Testing Model")
gen.sample(1)
+ tfWorking = 1
except:
print("Could not load tensorflow model :/")
+ tfWorking = 0
+
@app.route('/Generate', methods=['GET','POST'])
def generate():