From de479dd42130d67fb15f32beb99bec29b356792a Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Tue, 4 Aug 2020 21:28:56 +0530 Subject: added animations --- app/views.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/views.py') 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(): -- cgit v1.2.3