arsath-sm commited on
Commit
8b1b73a
1 Parent(s): 2423049

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,8 +6,8 @@ import numpy as np
6
  from huggingface_hub import from_pretrained_keras
7
 
8
  # Load the models
9
- model1 = from_pretrained_keras("arsath-sm/face_classification_model1")
10
- model2 = from_pretrained_keras("arsath-sm/face_classification_model2")
11
 
12
  # Preprocess the image
13
  def preprocess_image(img):
 
6
  from huggingface_hub import from_pretrained_keras
7
 
8
  # Load the models
9
+ model1 = tf.keras.layers.TFSMLayer("arsath-sm/face_classification_model1", call_endpoint='serving_default')
10
+ model2 = tf.keras.layers.TFSMLayer("arsath-sm/face_classification_model2", call_endpoint='serving_default')
11
 
12
  # Preprocess the image
13
  def preprocess_image(img):