manasjohri / Plant_Disease

3 stars 0 forks source link

Predict file not found #1

Open Shthaonly opened 6 months ago

Shthaonly commented 6 months ago

Hi thank you for your hard work ! I was editing and using the code and i faced an issue with the /predict file in the index.html file ( ">Plant Disease Detection

) I run the flask and the first page uploaded but when i press prediction to see the results it does not open the page and when i press on it in the index file it says "The editor could not be opened because the file was not found." any advice? thank you
manasjohri commented 6 months ago

You get this issue because the model weights is not there we can't upload heavy files on git. You have to compile that notebook 1st and save the weights for getting the prediction.

Shthaonly commented 6 months ago

Hi there can you inform me with a tutorial how to compile it and save it? or inform me with the steps if it"s not a problem .. in the code there is a compile and load lines but i get the error ( tempCodeRunnerFile.py", line 2, in model = Model(inputs=model.input, outputs = output) #https://www.tensorflow.org/api_docs/python/tf/keras/Model ^^^^^ NameError: name 'Model' is not defined

) thank you again