Spaces:
Sleeping
Sleeping
shashichilappagari
commited on
Commit
•
4217070
1
Parent(s):
492d41e
Update app.py
Browse files
app.py
CHANGED
@@ -49,6 +49,6 @@ with st.form("model_form"):
|
|
49 |
submitted = st.form_submit_button("Submit")
|
50 |
if submitted:
|
51 |
image = Image.open(uploaded_file)
|
52 |
-
image.thumbnail((640,640)
|
53 |
inference_results=crop_model(image)
|
54 |
st.image(inference_results.image_overlay,caption='Image with Bounding Boxes')
|
|
|
49 |
submitted = st.form_submit_button("Submit")
|
50 |
if submitted:
|
51 |
image = Image.open(uploaded_file)
|
52 |
+
image.thumbnail((640,640), Image.Resampling.LANCZOS)
|
53 |
inference_results=crop_model(image)
|
54 |
st.image(inference_results.image_overlay,caption='Image with Bounding Boxes')
|