Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 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/
|
| 23 |
-
"left_side_pain_classifier.pth": "https://huggingface.co/AdhamQQ/
|
| 24 |
-
"right_side_pain_classifier.pth": "https://huggingface.co/AdhamQQ/
|
| 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():
|