Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ labels = {
|
|
24 |
# Download the model file
|
25 |
def download_model():
|
26 |
url = "https://drive.google.com/uc?id=12700bE-pomYKoVQ214VrpBoJ7akXcTpL"
|
27 |
-
output = "modelV2Lmixed.keras"
|
28 |
gdown.download(url, output, quiet=False)
|
29 |
return output
|
30 |
|
@@ -32,7 +32,7 @@ def download_model():
|
|
32 |
download_model()
|
33 |
|
34 |
# Load the model
|
35 |
-
model = keras.saving.load_model("/home/user/
|
36 |
|
37 |
# Perform image classification for single class output
|
38 |
# def predict_class(image):
|
|
|
24 |
# Download the model file
|
25 |
def download_model():
|
26 |
url = "https://drive.google.com/uc?id=12700bE-pomYKoVQ214VrpBoJ7akXcTpL"
|
27 |
+
output = "/home/user/modelV2Lmixed.keras"
|
28 |
gdown.download(url, output, quiet=False)
|
29 |
return output
|
30 |
|
|
|
32 |
download_model()
|
33 |
|
34 |
# Load the model
|
35 |
+
model = keras.saving.load_model("/home/user/modelV2Lmixed.keras")
|
36 |
|
37 |
# Perform image classification for single class output
|
38 |
# def predict_class(image):
|