AdhamQQ commited on
Commit
e5b0777
·
verified ·
1 Parent(s): 3137ccc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -15,13 +15,11 @@ st.markdown("Upload a full-face image. The system will detect the affected side
15
 
16
  @st.cache_resource
17
  def download_models():
18
- # ✅ Ensure LFS-tracked files are downloaded
19
- st.write("🔄 Checking and pulling Git LFS files...")
20
- os.system("git lfs pull")
21
  model_urls = {
22
- "cnn_stroke_model.keras": "https://huggingface.co/spaces/AdhamQQ/StrokePatientsModel/resolve/main/cnn_stroke_model.keras",
23
- "left_side_pain_classifier.pth": "https://huggingface.co/AdhamQQ/StrokePatientsModel/resolve/main/left_side_pain_classifier.pth",
24
- "right_side_pain_classifier.pth": "https://huggingface.co/AdhamQQ/StrokePatientsModel/resolve/main/right_side_pain_classifier.pth",
25
  }
26
 
27
  for filename, url in model_urls.items():
 
15
 
16
  @st.cache_resource
17
  def download_models():
18
+
 
 
19
  model_urls = {
20
+ "cnn_stroke_model.keras": "https://huggingface.co/AdhamQQ/cnn_stroke_model/resolve/main/cnn_stroke_model.keras",
21
+ "left_side_pain_classifier.pth": "https://huggingface.co/AdhamQQ/cnn_stroke_model/resolve/main/left_side_pain_classifier.pth",
22
+ "right_side_pain_classifier.pth": "https://huggingface.co/AdhamQQ/cnn_stroke_model/resolve/main/right_side_pain_classifier.pth",
23
  }
24
 
25
  for filename, url in model_urls.items():