Spaces:
Sleeping
Sleeping
docker
Browse files
app.py
CHANGED
|
@@ -14,11 +14,13 @@ import cv2
|
|
| 14 |
from huggingface_hub import hf_hub_download
|
| 15 |
import tensorflow as tf
|
| 16 |
|
| 17 |
-
|
|
|
|
| 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 |
|