yusyel commited on
Commit
13c318b
·
unverified ·
1 Parent(s): e9a0609
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,7 +8,7 @@ import numpy as np
8
  model = from_pretrained_keras("yusyel/fishv2")
9
 
10
 
11
- class_names=["Black Sea Sprat",
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(class_names, pred))
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(