ImanAmran commited on
Commit
430a8e3
·
1 Parent(s): 82b38f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,5 +1,6 @@
1
  import tensorflow as tf
2
- from tensorflow.keras.models import load_model, Model
 
3
 
4
  # Function to preprocess the image
5
  def preprocess_image(filename, target_shape=(160, 160)):
@@ -10,4 +11,4 @@ def preprocess_image(filename, target_shape=(160, 160)):
10
  return image
11
 
12
  # Load the base FaceNet model
13
- facenet_model = load_model('facenet_keras.h5', compile=False)
 
1
  import tensorflow as tf
2
+ from tensorflow.keras import Model
3
+ from tensorflow.keras.models import load_model
4
 
5
  # Function to preprocess the image
6
  def preprocess_image(filename, target_shape=(160, 160)):
 
11
  return image
12
 
13
  # Load the base FaceNet model
14
+ facenet_model = load_model('facenet_keras.h5', compile=False)