import gradio as gr | |
from transformers import pipeline | |
pipe = pipeline(task="image-classification", | |
# model that can do 22k-category classification | |
model="KhadijaAsehnoune12/orange-disease-detector") | |
gr.Interface.from_pipeline(pipe, | |
title="22k Image Classification", | |
description="Detect diseases in orange leaves and fruits.", | |
examples = ['MoucheB.jpg', 'verdissement.jpg',], | |
).launch() |