KhadijaAsehnoune12's picture
Update app.py
0f12f6f verified
raw
history blame
No virus
545 Bytes
import gradio as gr
from transformers import pipeline
pipe = pipeline(task="image-classification",
# model that can do 22k-category classification
model="KhadijaAsehnoune12/LeafDiseaseDetectorForOranges")
gr.Interface.from_pipeline(pipe,
title="Orange Disease Image Classification",
description="Detect diseases in orange leaves and fruits.",
examples = ['MoucheB.jpg', 'verdissement.jpg',],
).launch()