dnth commited on
Commit
15d60ba
·
1 Parent(s): 58b37fc

add more image sample

Browse files
Files changed (2) hide show
  1. .ipynb_checkpoints/app-checkpoint.py +3 -0
  2. app.py +3 -0
.ipynb_checkpoints/app-checkpoint.py CHANGED
@@ -10,6 +10,9 @@ def predict(img):
10
  pred,pred_idx,probs = learn.predict(img)
11
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
12
 
 
 
 
13
  title = "Pet Breed Classifier"
14
  description = "A pet breed classifier trained on the Oxford Pets dataset"
15
  interpretation='default'
 
10
  pred,pred_idx,probs = learn.predict(img)
11
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
12
 
13
+ import os
14
+ for root, dirs, files in os.walk(r'sample_image/'):
15
+
16
  title = "Pet Breed Classifier"
17
  description = "A pet breed classifier trained on the Oxford Pets dataset"
18
  interpretation='default'
app.py CHANGED
@@ -10,6 +10,9 @@ def predict(img):
10
  pred,pred_idx,probs = learn.predict(img)
11
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
12
 
 
 
 
13
  title = "Pet Breed Classifier"
14
  description = "A pet breed classifier trained on the Oxford Pets dataset"
15
  interpretation='default'
 
10
  pred,pred_idx,probs = learn.predict(img)
11
  return {labels[i]: float(probs[i]) for i in range(len(labels))}
12
 
13
+ import os
14
+ for root, dirs, files in os.walk(r'sample_image/'):
15
+
16
  title = "Pet Breed Classifier"
17
  description = "A pet breed classifier trained on the Oxford Pets dataset"
18
  interpretation='default'