Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,8 @@ from mtcnn import MTCNN
|
|
5 |
from tensorflow.keras.models import load_model
|
6 |
from tensorflow.keras.applications.xception import preprocess_input as xcp_pre
|
7 |
from tensorflow.keras.applications.efficientnet import preprocess_input as eff_pre
|
|
|
|
|
8 |
|
9 |
# Load models
|
10 |
xcp_path = hf_hub_download(repo_id="Zeyadd-Mostaffa/deepfake-image-detector_final", filename="xception_model.h5")
|
|
|
5 |
from tensorflow.keras.models import load_model
|
6 |
from tensorflow.keras.applications.xception import preprocess_input as xcp_pre
|
7 |
from tensorflow.keras.applications.efficientnet import preprocess_input as eff_pre
|
8 |
+
from huggingface_hub import hf_hub_download
|
9 |
+
|
10 |
|
11 |
# Load models
|
12 |
xcp_path = hf_hub_download(repo_id="Zeyadd-Mostaffa/deepfake-image-detector_final", filename="xception_model.h5")
|