Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,7 +74,7 @@ def load_image_model():
|
|
| 74 |
model_path = "/tmp/image_detector_v2.keras"
|
| 75 |
|
| 76 |
if not os.path.exists(model_path):
|
| 77 |
-
url = "https://huggingface.co/
|
| 78 |
with requests.get(url, stream=True, allow_redirects=True) as r:
|
| 79 |
r.raise_for_status()
|
| 80 |
with open(model_path, "wb") as f: # save as .keras not .h5
|
|
|
|
| 74 |
model_path = "/tmp/image_detector_v2.keras"
|
| 75 |
|
| 76 |
if not os.path.exists(model_path):
|
| 77 |
+
url = "https://huggingface.co/syeda-Rija20/image-detector/resolve/main/image_detector_v2.keras?download=true"
|
| 78 |
with requests.get(url, stream=True, allow_redirects=True) as r:
|
| 79 |
r.raise_for_status()
|
| 80 |
with open(model_path, "wb") as f: # save as .keras not .h5
|