Spaces:
Sleeping
Sleeping
Create new file
Browse files
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)
|