syeda-Rija20 commited on
Commit
181dbc1
·
verified ·
1 Parent(s): 04188fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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/Muniba930/image-detector/resolve/main/image_detector_v2.h5?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
 
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