Spaces:
Runtime error
Runtime error
Update app.py
Browse files13 unmodified lines141516171819202113 unmodified linesst.image(uploaded_img)img = Image.open(uploaded_img)resized_img = img.resize((160,160))array = np.array(resized_img)result = loaded_model.predict(array)st.write(f"Your prediction is: {result}")13 unmodified lines1415161718192021222313 unmodified linesst.image(uploaded_img)img = Image.open(uploaded_img)resized_img = img.resize((160,160))input_array = keras.preprocessing.image.img_to_array(resized_img)input_arr = np.array([input_arr])input_arr = input_arr.astype('float32') / 255.result = loaded_model.predict(input_arr)st.write(f"Your prediction is: {result}")
app.py+4-2