shashichilappagari commited on
Commit
67d9268
·
1 Parent(s): aa3aa88

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -46,5 +46,6 @@ with st.form("model_form"):
46
  submitted = st.form_submit_button("Submit")
47
  if submitted:
48
  image = Image.open(uploaded_file)
 
49
  inference_results=crop_model(image)
50
  st.image(inference_results.image_overlay,caption='Image with Bounding Boxes')
 
46
  submitted = st.form_submit_button("Submit")
47
  if submitted:
48
  image = Image.open(uploaded_file)
49
+ image.thumbnail((640,640), Image.Resampling.LANCZOS)
50
  inference_results=crop_model(image)
51
  st.image(inference_results.image_overlay,caption='Image with Bounding Boxes')