AlonBBar's picture
Add app and model scripts
59135b8
raw
history blame
320 Bytes
import gradio as gr
from model import predict
iface = gr.Interface(
fn=predict,
inputs=gr.Image(type="pil"),
outputs=gr.Label(num_top_classes=1),
title="Plant Disease Classifier",
description="Upload a leaf image and the model predicts the disease."
)
if __name__ == "__main__":
iface.launch()