Update pages/testSeg.py
Browse files6 unmodified lines789101112136 unmodified linesfrom PIL import Image# Load the trained U-Net modelmodel = tf.keras.models.load_model("unet_model.keras")# Define a function to preprocess the imagedef preprocess_image(uploaded_image, target_size=(128, 128)):6 unmodified lines789101112136 unmodified linesfrom PIL import Image# Load the trained U-Net modelmodel = tf.keras.models.load_model("pages/dyskera_unet_model.keras")# Define a function to preprocess the imagedef preprocess_image(uploaded_image, target_size=(128, 128)):
pages/testSeg.py+1-1