Spaces:
Runtime error
Runtime error
Update app.py
Browse files13 unmodified lines1415161718192013 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)13 unmodified lines1415161718192013 unmodified linesst.image(uploaded_img)img = Image.open(uploaded_img)resized_img = img.resize((160,160))input_arr = 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)
app.py+1-1