oreo17 commited on
Commit
01eb14c
1 Parent(s): 88c86fa

Create new file

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from transformers import pipeline
3
+
4
+ pipe = pipeline(task = 'image-classification')
5
+
6
+ gr.Interface.from_pipeline(pipe,
7
+ title = "Maize Leaf Disease Detection",
8
+ description = "Corn Leaf disease classification",
9
+ examples = ['Corn_Blight(1).jpeg', 'Corn_Common_Rust(1).jpg', 'Corn_Gray_Spot(1).jpg', 'Corn_Health(1).jpg'],
10
+ allow_flagging = "never").launch(inbrowser=True)