Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from tensorflow.keras.preprocessing.image import load_img, img_to_array
|
|
| 5 |
import numpy as np
|
| 6 |
from PIL import Image
|
| 7 |
|
| 8 |
-
model = load_model('
|
| 9 |
|
| 10 |
def predict_image(image):
|
| 11 |
img_array = img_to_array(image)
|
|
@@ -19,7 +19,7 @@ def predict_image(image):
|
|
| 19 |
|
| 20 |
my_app = gr.Blocks()
|
| 21 |
with my_app:
|
| 22 |
-
gr.Markdown("<center><h1>Paddy Pest Disease Classification
|
| 23 |
with gr.Row():
|
| 24 |
with gr.Column():
|
| 25 |
img_source = gr.Image(label="Please select source Image", shape=(256, 256))
|
|
|
|
| 5 |
import numpy as np
|
| 6 |
from PIL import Image
|
| 7 |
|
| 8 |
+
model = load_model('model_extended.h5')
|
| 9 |
|
| 10 |
def predict_image(image):
|
| 11 |
img_array = img_to_array(image)
|
|
|
|
| 19 |
|
| 20 |
my_app = gr.Blocks()
|
| 21 |
with my_app:
|
| 22 |
+
gr.Markdown("<center><h1>Paddy Pest Disease Classification App</h1></center>")
|
| 23 |
with gr.Row():
|
| 24 |
with gr.Column():
|
| 25 |
img_source = gr.Image(label="Please select source Image", shape=(256, 256))
|