Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -57,7 +57,7 @@ def load_image_model():
|
|
| 57 |
model_path = "image_model.h5"
|
| 58 |
|
| 59 |
if not os.path.exists(model_path):
|
| 60 |
-
url = "https://huggingface.co/syeda-Rija20/image-detector/
|
| 61 |
response = requests.get(url)
|
| 62 |
with open(model_path, "wb") as f:
|
| 63 |
f.write(response.content)
|
|
|
|
| 57 |
model_path = "image_model.h5"
|
| 58 |
|
| 59 |
if not os.path.exists(model_path):
|
| 60 |
+
url = "https://huggingface.co/syeda-Rija20/image-detector/resolve/main/image_detector_finetuned.h5"
|
| 61 |
response = requests.get(url)
|
| 62 |
with open(model_path, "wb") as f:
|
| 63 |
f.write(response.content)
|