Spaces:
Sleeping
Sleeping
Commit ·
243e4be
1
Parent(s): 2db5ea4
refactor: app.py
Browse files
app.py
CHANGED
|
@@ -25,7 +25,6 @@ def main():
|
|
| 25 |
uploaded_file = st.file_uploader("Choose an image", type=["jpg", "png", "jpeg"])
|
| 26 |
|
| 27 |
if uploaded_file is not None:
|
| 28 |
-
# Display uploaded image
|
| 29 |
image = Image.open(uploaded_file)
|
| 30 |
|
| 31 |
# Save the uploaded image temporarily
|
|
@@ -35,7 +34,6 @@ def main():
|
|
| 35 |
if st.button("Process"):
|
| 36 |
result_path, result = process_image(temp_image_path)
|
| 37 |
|
| 38 |
-
# Display results
|
| 39 |
st.image(result_path, caption="Detected Objects", use_container_width=True)
|
| 40 |
|
| 41 |
# Display detected objects details
|
|
|
|
| 25 |
uploaded_file = st.file_uploader("Choose an image", type=["jpg", "png", "jpeg"])
|
| 26 |
|
| 27 |
if uploaded_file is not None:
|
|
|
|
| 28 |
image = Image.open(uploaded_file)
|
| 29 |
|
| 30 |
# Save the uploaded image temporarily
|
|
|
|
| 34 |
if st.button("Process"):
|
| 35 |
result_path, result = process_image(temp_image_path)
|
| 36 |
|
|
|
|
| 37 |
st.image(result_path, caption="Detected Objects", use_container_width=True)
|
| 38 |
|
| 39 |
# Display detected objects details
|