File size: 545 Bytes
8d12dce e6de937 0f12f6f e6de937 8782d91 e6de937 |
1 2 3 4 5 6 7 8 9 10 11 |
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() |