usamaalam commited on
Commit
2a2cecd
·
1 Parent(s): 93ab4cb

Reference M3_best_v2.h5 (full model saved from TF 2.20)

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -86,7 +86,7 @@ def load_trained_model():
86
  import os
87
  from huggingface_hub import hf_hub_download
88
 
89
- local_path = 'M3_best.h5'
90
 
91
  # Resolve a path to the H5 weights (local first, then HF Hub)
92
  if os.path.exists(local_path):
@@ -95,7 +95,7 @@ def load_trained_model():
95
  st.info("Downloading model from Hugging Face Hub...")
96
  model_path = hf_hub_download(
97
  repo_id="usamaalam/image-forgery-detection-model",
98
- filename="M3_best.h5",
99
  cache_dir=".cache"
100
  )
101
 
 
86
  import os
87
  from huggingface_hub import hf_hub_download
88
 
89
+ local_path = 'M3_best_v2.h5'
90
 
91
  # Resolve a path to the H5 weights (local first, then HF Hub)
92
  if os.path.exists(local_path):
 
95
  st.info("Downloading model from Hugging Face Hub...")
96
  model_path = hf_hub_download(
97
  repo_id="usamaalam/image-forgery-detection-model",
98
+ filename="M3_best_v2.h5",
99
  cache_dir=".cache"
100
  )
101