Spaces:
Sleeping
Sleeping
added requirements
Browse files- app.py +1 -0
- requirements.txt +2 -0
app.py
CHANGED
|
@@ -4,6 +4,7 @@ from fastai.vision.all import *
|
|
| 4 |
learn = load_learner(fname='pet_breeds.pkl')
|
| 5 |
|
| 6 |
labels = learn.dls.vocab
|
|
|
|
| 7 |
def predict(img):
|
| 8 |
img = PILImage.create(img)
|
| 9 |
pred,pred_idx,probs = learn.predict(img)
|
|
|
|
| 4 |
learn = load_learner(fname='pet_breeds.pkl')
|
| 5 |
|
| 6 |
labels = learn.dls.vocab
|
| 7 |
+
|
| 8 |
def predict(img):
|
| 9 |
img = PILImage.create(img)
|
| 10 |
pred,pred_idx,probs = learn.predict(img)
|
requirements.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
fastai
|
| 2 |
+
scikit-image
|