mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-21 13:50:20 +08:00
Use tensorflow v1 API (should be updated, but this works as a bridge)
This commit is contained in:
@@ -57,7 +57,8 @@ class ToolRecommendations():
|
||||
# keras is not downloaded because of conditional requirement and Galaxy does not build
|
||||
try:
|
||||
from keras.models import model_from_json
|
||||
import tensorflow as tf
|
||||
import tensorflow.compat.v1 as tf
|
||||
tf.disable_v2_behavior()
|
||||
except Exception:
|
||||
trans.response.status = 400
|
||||
return False
|
||||
|
||||
Reference in New Issue
Block a user