DLBot commited on
Commit
d450e7f
·
1 Parent(s): 50346cc

updated model

Browse files
Files changed (3) hide show
  1. .DS_Store +0 -0
  2. app.py +5 -2
  3. model.pkl +2 -2
.DS_Store ADDED
Binary file (6.15 kB). View file
 
app.py CHANGED
@@ -4,12 +4,15 @@ learn=load_learner("model.pkl")
4
 
5
  def classify_images(im):
6
  pred,idx,probs=learn.predict(im)
7
- s='Your plant is '+pred
 
 
 
8
  return s
9
 
10
 
11
 
12
- img=gr.Image()
13
  label=gr.Label()
14
  examples=["healthy1.jpeg","mosaic.jpeg","redrot.jpeg"]
15
 
 
4
 
5
  def classify_images(im):
6
  pred,idx,probs=learn.predict(im)
7
+ if pred=='Healthy':
8
+ s='Your plant is '+pred
9
+ else:
10
+ s='Your plant has '+pred
11
  return s
12
 
13
 
14
 
15
+ img=gr.Image(shape=(300,200))
16
  label=gr.Label()
17
  examples=["healthy1.jpeg","mosaic.jpeg","redrot.jpeg"]
18
 
model.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:55ed30df69007aa568bcf59670c59f04d6e24c3f9552ceefc6f7c66843e59e25
3
- size 47003865
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a42e31aafafa7d7d4bddf14febb6abf63d006cefa48a079d99c0629e67990ecf
3
+ size 47003801