Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,11 +3,10 @@ import numpy as np
|
|
| 3 |
import streamlit as st
|
| 4 |
from PIL import Image
|
| 5 |
import os
|
| 6 |
-
|
| 7 |
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
model = keras.saving.load_model("hf://ElBeh/ma_basemodel")
|
| 11 |
|
| 12 |
|
| 13 |
st.title("Fake Detection")
|
|
|
|
| 3 |
import streamlit as st
|
| 4 |
from PIL import Image
|
| 5 |
import os
|
| 6 |
+
from huggingface_hub import snapshot_download
|
| 7 |
|
| 8 |
+
local_model_path = snapshot_download(repo_id="ElBeh/ma_basemodel")
|
| 9 |
+
model = keras.models.load_model(local_model_path)
|
|
|
|
| 10 |
|
| 11 |
|
| 12 |
st.title("Fake Detection")
|