Spaces:
Runtime error
Runtime error
Hitomiblood
commited on
Commit
•
3883b5b
1
Parent(s):
4c7541d
Update app.py
Browse files
app.py
CHANGED
@@ -6,9 +6,8 @@ from huggingface_hub import from_pretrained_keras
|
|
6 |
model = from_pretrained_keras("Hitomiblood/blindness_model_keras")
|
7 |
|
8 |
def classify_image(image):
|
9 |
-
|
10 |
-
|
11 |
-
prediction = inception_net.predict(inp).flatten()
|
12 |
return prediction
|
13 |
|
14 |
image = gr.inputs.Image(shape=(512, 512))
|
|
|
6 |
model = from_pretrained_keras("Hitomiblood/blindness_model_keras")
|
7 |
|
8 |
def classify_image(image):
|
9 |
+
image_array = np.array(image) / 255.0 # Normalización
|
10 |
+
prediction = model.predict(image)
|
|
|
11 |
return prediction
|
12 |
|
13 |
image = gr.inputs.Image(shape=(512, 512))
|