Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 =
|
10 |
-
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):
|