elsoori commited on
Commit
968d374
·
verified ·
1 Parent(s): 5892748

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -17,7 +17,8 @@ uploaded_file = st.file_uploader("Upload an image for classification", type=["jp
17
 
18
  if uploaded_file:
19
  # Open the uploaded image
20
- image = Image.open(uploaded_file)
 
21
 
22
  # Display the uploaded image with a caption
23
  st.image(image, caption="Uploaded Image", use_column_width=True)
 
17
 
18
  if uploaded_file:
19
  # Open the uploaded image
20
+ image = Image.open(uploaded_file).convert('RGB')
21
+
22
 
23
  # Display the uploaded image with a caption
24
  st.image(image, caption="Uploaded Image", use_column_width=True)