yusyel
commited on
v2
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ import numpy as np
|
|
| 8 |
model = from_pretrained_keras("yusyel/fishv2")
|
| 9 |
|
| 10 |
|
| 11 |
-
|
| 12 |
"Gilt-Head Bream",
|
| 13 |
"Hourse Mackerel",
|
| 14 |
"Red Mullet",
|
|
@@ -34,7 +34,7 @@ def predict(img):
|
|
| 34 |
pred = model.predict(img)
|
| 35 |
pred = np.squeeze(pred).astype(float)
|
| 36 |
print(pred)
|
| 37 |
-
return dict(zip(
|
| 38 |
|
| 39 |
|
| 40 |
demo = gr.Interface(
|
|
|
|
| 8 |
model = from_pretrained_keras("yusyel/fishv2")
|
| 9 |
|
| 10 |
|
| 11 |
+
CLASS=["Black Sea Sprat",
|
| 12 |
"Gilt-Head Bream",
|
| 13 |
"Hourse Mackerel",
|
| 14 |
"Red Mullet",
|
|
|
|
| 34 |
pred = model.predict(img)
|
| 35 |
pred = np.squeeze(pred).astype(float)
|
| 36 |
print(pred)
|
| 37 |
+
return dict(zip(CLASS, pred))
|
| 38 |
|
| 39 |
|
| 40 |
demo = gr.Interface(
|