Spaces:
Sleeping
Sleeping
Changed the model path from dir path to file path
Browse files1 unmodified line234567891011121 unmodified linefrom torchvision import transformsimport tensorflow as tftf.config.experimental._could_use_gpu_kernel = Falsemodel_path = "./4-15_ViT-B16_Lung3_v1"# model = tf.keras.models.load_model(model_path)model = tf.keras.layers.TFSMLayer(model_path, call_endpoint='serving_default')# Define preprocessing functiondef preprocess_image(image):1 unmodified line234567891011121 unmodified linefrom torchvision import transformsimport tensorflow as tf# tf.config.experimental._could_use_gpu_kernel = Falsemodel_path = "./4-15_ViT-B16_Lung3_v1/saved_model.pb"model = tf.keras.models.load_model(model_path)# model = tf.keras.layers.TFSMLayer(model_path, call_endpoint='serving_default')# Define preprocessing functiondef preprocess_image(image):
app.py+4-4