annapurnapadmaprema-ji commited on
Commit
a47f330
·
verified ·
1 Parent(s): 874c77e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -32,7 +32,8 @@ uploaded_file = st.file_uploader("Choose an image...", type=["jpg", "jpeg", "png
32
  if uploaded_file is not None:
33
 
34
  img = Image.open(uploaded_file)
35
- st.image(img, caption="Uploaded Image.", use_column_width=True)
 
36
 
37
 
38
  if st.button('Classify'):
 
32
  if uploaded_file is not None:
33
 
34
  img = Image.open(uploaded_file)
35
+ img_resized = img.resize((300, 300))
36
+ st.image(img_resized, caption="Uploaded Image.", use_container_width=True)
37
 
38
 
39
  if st.button('Classify'):