groupproject / app.py
oreo17's picture
Create new file
01eb14c
raw
history blame
492 Bytes
import gradio as gr
from transformers import pipeline
pipe = pipeline(task = 'image-classification')
gr.Interface.from_pipeline(pipe,
title = "Maize Leaf Disease Detection",
description = "Corn Leaf disease classification",
examples = ['Corn_Blight(1).jpeg', 'Corn_Common_Rust(1).jpg', 'Corn_Gray_Spot(1).jpg', 'Corn_Health(1).jpg'],
allow_flagging = "never").launch(inbrowser=True)