nishantguvvada commited on
Commit
76ac1d3
·
1 Parent(s): 9d76973

convert to RGB

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -59,6 +59,7 @@ def on_click():
59
  else:
60
  image = Image.open(file)
61
  st.image(image, use_column_width=True)
 
62
  predictions = model_prediction(np.array(image))
63
  st.write(prediction)
64
  print(
 
59
  else:
60
  image = Image.open(file)
61
  st.image(image, use_column_width=True)
62
+ image = image.convert('RGB')
63
  predictions = model_prediction(np.array(image))
64
  st.write(prediction)
65
  print(