diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2020-08-04 21:28:56 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2020-08-04 21:28:56 +0530 |
commit | de479dd42130d67fb15f32beb99bec29b356792a (patch) | |
tree | 743cd2fdb0b1e35619f105ebca7d1c6b52914b0a /app/views.py | |
parent | a309a4607aa2aba63ea15c9aa9d9c7a7f2e99551 (diff) |
added animations
Diffstat (limited to 'app/views.py')
-rw-r--r-- | app/views.py | 4 |
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(): |