vishnu23 commited on
Commit
e92e7cd
·
1 Parent(s): 5f59078

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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('/content/drive/MyDrive/Colab Notebooks/model_extended.h5')
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 Application UI with Gradio</h1></center>")
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))