Spaces:
Runtime error
Runtime error
add more image sample
Browse files- .ipynb_checkpoints/app-checkpoint.py +3 -0
- 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'
|