fradinho commited on
Commit
c0eaaf9
·
1 Parent(s): 097fd30

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -126,7 +126,8 @@ def weighted_categorical_crossentropy(weights):
126
 
127
  # Load the model
128
  #model = tf.keras.models.load_model("model.h5", custom_objects={"jacard":jacard, "wcce":weighted_categorical_crossentropy})
129
- model = tf.keras.models.load_model("model_2.h5", custom_objects={"jacard":jacard, "bce_dice":bce_dice})
 
130
 
131
  # Create a user interface for the model
132
  my_app = gr.Blocks()
 
126
 
127
  # Load the model
128
  #model = tf.keras.models.load_model("model.h5", custom_objects={"jacard":jacard, "wcce":weighted_categorical_crossentropy})
129
+ #model = tf.keras.models.load_model("model_2.h5", custom_objects={"jacard":jacard, "bce_dice":bce_dice})
130
+ model = tf.keras.models.load_model("model_2_A (3).h5", custom_objects={"jacard":jacard, "bce_dice":bce_dice})
131
 
132
  # Create a user interface for the model
133
  my_app = gr.Blocks()