Skip to content

Commit

Permalink
Fix Tensorflow 2.0 error (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
qubixes committed Oct 16, 2019
1 parent 709487c commit b58ac90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ notifications:
email: false

install:
- pip install tensorflow==1.13.2
- pip install --upgrade setuptools>=41.0.0
- pip install .

script:
Expand Down
5 changes: 4 additions & 1 deletion asreview/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@

import numpy as np # noqa
import tensorflow as tf # noqa
tf.logging.set_verbosity(tf.logging.ERROR)
try:
tf.logging.set_verbosity(tf.logging.ERROR)
except AttributeError:
logging.getLogger("tensorflow").setLevel(logging.ERROR)

from asreview import __version__ # noqa
from asreview.review import review_oracle, review_simulate # noqa
Expand Down

0 comments on commit b58ac90

Please sign in to comment.