if __name__ == "__main__": gr.Interface( fn=analyze_plant, inputs=gr.Image(type="pil", label="🖼️ Upload Leaf"), outputs=gr.Markdown(), title="🌿 Plant Disease Detector" ).launch()