Views
No views yet
pip install -r requirements.txtPlantDiseasePredictor class from the notebook to load the model and make predictions.1# Save the PlantDiseasePredictor class to a file named predictor.py
2from predictor import PlantDiseasePredictor
3
4# Load the model from the Hub
5predictor = PlantDiseasePredictor.from_hub("Abuzaid01/plant_detector")
6
7# Predict a single image
8results = predictor.predict('path/to/your/image.jpg')
9print(results)