alperugurcan commited on
Commit
2733ecd
·
verified ·
1 Parent(s): d2d13b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ uploaded_file = st.file_uploader("Choose an image...", type=["jpg", "jpeg", "png
23
 
24
  if uploaded_file is not None:
25
  # Display the uploaded image
26
- image = Image.open(uploaded_file)
27
  st.image(image, caption='Uploaded Image', use_column_width=True)
28
 
29
  # Preprocess the image
 
23
 
24
  if uploaded_file is not None:
25
  # Display the uploaded image
26
+ image = Image.open(uploaded_file).convert('RGB') # Convert to RGB
27
  st.image(image, caption='Uploaded Image', use_column_width=True)
28
 
29
  # Preprocess the image