Spaces:
Sleeping
Sleeping
updated model
Browse files
.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 |
-
|
|
|
|
|
|
|
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:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a42e31aafafa7d7d4bddf14febb6abf63d006cefa48a079d99c0629e67990ecf
|
3 |
+
size 47003801
|