Fix folder load path
This commit is contained in:
parent
176b7b693a
commit
e89cd155ae
@ -23,7 +23,7 @@ test_Y = tf.convert_to_tensor(test_data[["IMDb"]])
|
||||
normalizer = preprocessing.Normalization(input_shape=[3,])
|
||||
normalizer.adapt(train_X)
|
||||
|
||||
if os.path.isfile('linear_regression.h5'):
|
||||
if os.path.isdir('linear_regression'):
|
||||
model = keras.models.load_model('linear_regression')
|
||||
else:
|
||||
model = keras.Sequential([
|
||||
|
Loading…
Reference in New Issue
Block a user