Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,13 +5,12 @@ import numpy as np
|
|
5 |
from huggingface_hub import hf_hub_download
|
6 |
import os
|
7 |
|
8 |
-
|
9 |
-
model1_path = hf_hub_download(repo_id="arsath-sm/face_classification_model1", filename="model.h5")
|
10 |
-
model2_path = hf_hub_download(repo_id="arsath-sm/face_classification_model2", filename="model.h5")
|
11 |
|
12 |
# Load the models
|
13 |
-
|
14 |
-
|
|
|
15 |
|
16 |
# Preprocess the image
|
17 |
def preprocess_image(img):
|
|
|
5 |
from huggingface_hub import hf_hub_download
|
6 |
import os
|
7 |
|
8 |
+
|
|
|
|
|
9 |
|
10 |
# Load the models
|
11 |
+
|
12 |
+
model1 = load_model_from_hub("arsath-sm/face_classification_model1", "face_classification_model1.h5")
|
13 |
+
model2 = load_model_from_hub("arsath-sm/face_classification_model2", "face_classification_model2.h5")
|
14 |
|
15 |
# Preprocess the image
|
16 |
def preprocess_image(img):
|