Spaces:
Runtime error
Runtime error
Update pages/ResNet50_Model.py
Browse files17 unmodified lines1819202122232423 unmodified lines484950515253542 unmodified lines575859606117 unmodified linesmodel = load_model()st.write("""# Rice Disease Classifier""")23 unmodified linesprediction = upload_predict(image, model)predicted_result = np.argmax(prediction)print(predicted_result)classfiers = ['bacterial_leaf_blight','bacterial_leaf_streak','bakanae','brown_spot','grassy_stunt_virus','healthy_rice_plant','narrow_brown_spot','ragged_stunt_virus','rice_blast','rice_false_smut','sheath_blight','sheath_rot','stem_rot','tungro_virus']2 unmodified lines# Resultsst.success("Your plant is suffering from: ", image_class)st.info("The similarity score is approximately", confidence_score, "/1")print("The image is classified as ", image_class, "with a similarity score of", confidence_score)17 unmodified lines1819202122232423 unmodified lines484950515253542 unmodified lines575859606117 unmodified linesmodel = load_model()st.write("""# ResNet50 Model""")23 unmodified linesprediction = upload_predict(image, model)predicted_result = np.argmax(prediction)#print(predicted_result)classfiers = ['bacterial_leaf_blight','bacterial_leaf_streak','bakanae','brown_spot','grassy_stunt_virus','healthy_rice_plant','narrow_brown_spot','ragged_stunt_virus','rice_blast','rice_false_smut','sheath_blight','sheath_rot','stem_rot','tungro_virus']2 unmodified lines# Resultsst.success("Your plant is suffering from: ", image_class)st.info("👀 Accuracy Confidence score is: ", confidence_score, "/100")#print("The image is classified as ", image_class, "with a similarity score of", confidence_score)
pages/ResNet50_Model.py+4-4