PanagiotaMoraiti commited on
Commit
91d6e54
·
verified ·
1 Parent(s): c3a4bd6

Delete fastai_banana_classifier

Browse files
fastai_banana_classifier/.gitattributes DELETED
@@ -1 +0,0 @@
1
- *.pkl filter=lfs diff=lfs merge=lfs -text
 
 
fastai_banana_classifier/app.py DELETED
@@ -1,28 +0,0 @@
1
- import gradio as gr
2
- from fastai.vision.all import *
3
-
4
- learn = load_learner('model.pkl')
5
- labels = ['brown_spots', 'green', 'spoiled', 'yellow']
6
-
7
-
8
- def predict(img):
9
- img = PILImage.create(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 = "Banana Quality Classifier"
14
- description = "A banana classifier that can classify bananas into 4 categories based on their quality"
15
- examples = ['yellow_banana.jpg', 'green_banana.jpg', 'banana_with_brown_spots.jpg', 'black_banana.jpg']
16
- interpretation='default'
17
- enable_queue=True
18
-
19
- gr.Interface(
20
- fn=predict,
21
- inputs=gr.inputs.Image(shape=(512, 512)),
22
- outputs=gr.outputs.Label(num_top_classes=3),
23
- title=title,
24
- description=description,
25
- examples=examples,
26
- interpretation=interpretation,
27
- enable_queue=enable_queue
28
- ).launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fastai_banana_classifier/banana_with_brown_spots.jpg DELETED
Binary file (21.7 kB)
 
fastai_banana_classifier/black_banana.jpg DELETED
Binary file (78.3 kB)
 
fastai_banana_classifier/green_banana.jpg DELETED

Git LFS Details

  • SHA256: 09c989acc0478ff3ef3743465124b16200fff522ed19ee2b47664dd001270ab5
  • Pointer size: 132 Bytes
  • Size of remote file: 2.47 MB
fastai_banana_classifier/model.pkl DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:8aa7ea2ac52ca75e79b08db9480bd70b296d9913117b1641d62b8744378a4b63
3
- size 46972798
 
 
 
 
fastai_banana_classifier/requirements.txt DELETED
@@ -1,2 +0,0 @@
1
- fastai
2
- scikit-image
 
 
 
fastai_banana_classifier/yellow_banana.jpg DELETED

Git LFS Details

  • SHA256: fb06174b106f2e63ab044816d9c6b5cee85e5382702c2f08cd3832492ab790a5
  • Pointer size: 132 Bytes
  • Size of remote file: 1.18 MB