eesfeg commited on
Commit
cd055a5
·
1 Parent(s): 6b8a098
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -14,11 +14,13 @@ import cv2
14
  from huggingface_hub import hf_hub_download
15
  import tensorflow as tf
16
 
17
- feature_extractor = hf_hub_download(
 
18
  repo_id="abdelac/FakeImageModelKeras",
19
  filename="feature_extractor.keras"
20
  )
21
 
 
22
  #feature_extractor = tf.keras.models.load_model(model_path)
23
  print("Model loaded successfully!")
24
 
 
14
  from huggingface_hub import hf_hub_download
15
  import tensorflow as tf
16
 
17
+
18
+ model_path = hf_hub_download(
19
  repo_id="abdelac/FakeImageModelKeras",
20
  filename="feature_extractor.keras"
21
  )
22
 
23
+ feature_extractor = load_model(model_path)
24
  #feature_extractor = tf.keras.models.load_model(model_path)
25
  print("Model loaded successfully!")
26