arsath-sm commited on
Commit
534868b
·
verified ·
1 Parent(s): 71e8e9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -5,13 +5,12 @@ import numpy as np
5
  from huggingface_hub import hf_hub_download
6
  import os
7
 
8
- # Download the models
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
- model1 = tf.keras.models.load_model(model1_path)
14
- model2 = tf.keras.models.load_model(model2_path)
 
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):