diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2020-09-10 12:25:30 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2020-09-10 12:25:30 +0530 |
commit | 4b48546cea6c894d735f6c9e9d271f4f6a15a57e (patch) | |
tree | 281b44444a0b23be780ef2cff82e30a5665ae0f3 /app/views.py | |
parent | 2f0d88120f358afd9f2780eaadf1eaf82a681a0b (diff) |
updated Readme to tell about config.ini
Also, moved away from hard-coding tfWorking value
Diffstat (limited to 'app/views.py')
-rw-r--r-- | app/views.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/views.py b/app/views.py index c296f68..c272e73 100644 --- a/app/views.py +++ b/app/views.py @@ -247,11 +247,9 @@ def generate_pdbqts(): return render_template('pdbqt_form.html',form=myform) -tfWorking = 0 - -if tfWorking == -1: +if app.config['LSTM']: try: - import tensorrflow as tf + import tensorflow as tf tfWorking = 1 except Exception as e: log(e,"EXCEPTION") |