Pranjal-psytech commited on
Commit
ffd45c2
1 Parent(s): f1d45e3
7227b3db-c212-4370-8b42-443eea1577aa___RS_Early.B 7306.JPG ADDED
7456db33-766c-4a68-b924-ddf69d579981___RS_Early.B 6723.JPG ADDED
7486e823-64f7-4e43-ab51-26261b077fc2___RS_Early.B 6785.JPG ADDED
8829e413-5a7a-4680-b873-e71dfa9dbfe4___RS_LB 3974.JPG ADDED
9001b18c-b659-4c56-9dfb-0d0bf64a7b4a___RS_LB 4987.JPG ADDED
9009c86e-1205-4694-b0bb-ef7cf78dd104___RS_LB 3995.JPG ADDED
Potato_healthy-76-_0_2420.jpg ADDED
Potato_healthy-76-_0_6833.jpg ADDED
Potato_healthy-76-_0_7539.jpg ADDED
app.py CHANGED
@@ -59,6 +59,8 @@ def classify_image(image):
59
  # pred = model.predict(img_array)
60
  # return pred[0][0]
61
 
 
 
62
  # Define the Gradio interface for image input
63
  input_interface = gr.inputs.Image()
64
 
@@ -66,4 +68,4 @@ input_interface = gr.inputs.Image()
66
  output_interface = gr.Textbox()
67
 
68
  # Launch the Gradio interface with the classify_image function as the prediction function
69
- gr.Interface(fn=classify_image, inputs=input_interface, outputs=output_interface).launch()
 
59
  # pred = model.predict(img_array)
60
  # return pred[0][0]
61
 
62
+ examples=[os.path.join(os.path.dirname(__file__),'7227b3db-c212-4370-8b42-443eea1577aa___RS_Early.B 7306.JPG','7456db33-766c-4a68-b924-ddf69d579981___RS_Early.B 6723.JPG','7486e823-64f7-4e43-ab51-26261b077fc2___RS_Early.B 6785.JPG','8829e413-5a7a-4680-b873-e71dfa9dbfe4___RS_LB 3974.JPG','9001b18c-b659-4c56-9dfb-0d0bf64a7b4a___RS_LB 4987.JPG','9009c86e-1205-4694-b0bb-ef7cf78dd104___RS_LB 3995.JPG','Potato_healthy-76-_0_2420.jpg','Potato_healthy-76-_0_6833.jpg','Potato_healthy-76-_0_7539.jpg')]
63
+
64
  # Define the Gradio interface for image input
65
  input_interface = gr.inputs.Image()
66
 
 
68
  output_interface = gr.Textbox()
69
 
70
  # Launch the Gradio interface with the classify_image function as the prediction function
71
+ gr.Interface(fn=classify_image, inputs=input_interface, outputs=output_interface,Examples=examples).launch()