Spaces:
Sleeping
Sleeping
storesource
commited on
Commit
•
ba67a5f
1
Parent(s):
fd1e932
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def load_model():
|
|
18 |
with tempfile.NamedTemporaryFile(suffix=".keras") as temp_file:
|
19 |
url = "https://huggingface.co/tomeheya/IM-417-128x128-classification/raw/main/IM_417_128.keras"
|
20 |
urlretrieve(url, temp_file.name)
|
21 |
-
return
|
22 |
|
23 |
|
24 |
# Function to preprocess the input image
|
|
|
18 |
with tempfile.NamedTemporaryFile(suffix=".keras") as temp_file:
|
19 |
url = "https://huggingface.co/tomeheya/IM-417-128x128-classification/raw/main/IM_417_128.keras"
|
20 |
urlretrieve(url, temp_file.name)
|
21 |
+
return keras.models.load_model(temp_file.name)
|
22 |
|
23 |
|
24 |
# Function to preprocess the input image
|