Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,7 @@ title = "CropDoc"
|
|
| 9 |
description = " Upload a picture of a Soybean plant leaf or drag and drop one of the examples below to the upload box to find out if the soybean plant is suffering from a disease or if it's healthy!\n"
|
| 10 |
with gr.Blocks() as demo:
|
| 11 |
with gr.Tab("Disease identifier"):
|
| 12 |
-
learn = load_learner('
|
| 13 |
|
| 14 |
categories = ('Brown Spot','Bacterial Blight', 'Bacterial Pustule','Frogeye Leaf Spot', 'Cercospora Leaf Blight','Downy Mildew', 'Healthy Soybean Leaf')
|
| 15 |
def classify_image(img):
|
|
|
|
| 9 |
description = " Upload a picture of a Soybean plant leaf or drag and drop one of the examples below to the upload box to find out if the soybean plant is suffering from a disease or if it's healthy!\n"
|
| 10 |
with gr.Blocks() as demo:
|
| 11 |
with gr.Tab("Disease identifier"):
|
| 12 |
+
learn = load_learner('modeldayfinal.pkl')
|
| 13 |
|
| 14 |
categories = ('Brown Spot','Bacterial Blight', 'Bacterial Pustule','Frogeye Leaf Spot', 'Cercospora Leaf Blight','Downy Mildew', 'Healthy Soybean Leaf')
|
| 15 |
def classify_image(img):
|