Ashishmis1/plant_disease_detection ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple web app for plant disease detection where someone can upload a photo of a leaf and get a disease prediction back right away.
I already have a trained Keras model file and a JSON file with the label names and disease info, so wire the app up to use those and show the result clearly on the page. The site should let me choose an image, upload it, preview the image I sent, and then display the predicted disease in a clean, easy to read way. If you need to, look up the current Flask and TensorFlow docs online so the app runs correctly with a modern setup.
Please make sure it works end to end from the main Python app, includes the basic page styling, and handles missing or bad uploads gracefully. I want something I can run locally and use right away without having to piece together extra files.
Are you gonna build this?
make sure you review the code using coderabbit