Essa20001 commited on
Commit
9bbbd0a
·
verified ·
1 Parent(s): 93f61b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ model = tf.keras.models.load_model('complete_.keras')
11
  if image :
12
  button = st.button("Complete")
13
  image = Image.open(image)
14
- image = image.convert("L")
15
  image = image.resize((128,128-80))
16
  padded_width = image.width + padding_width # Add the padding width to the original width
17
  padded_height =image.height # Keep the original height
 
11
  if image :
12
  button = st.button("Complete")
13
  image = Image.open(image)
14
+ image = image.convert("RGB")
15
  image = image.resize((128,128-80))
16
  padded_width = image.width + padding_width # Add the padding width to the original width
17
  padded_height =image.height # Keep the original height