Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,9 +38,12 @@ def main():
|
|
| 38 |
uploaded_files = st.file_uploader("Upload image files", type=["jpg", "jpeg", "png"], accept_multiple_files=True)
|
| 39 |
|
| 40 |
if uploaded_files is not None:
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
# Create a container to hold the cropped images
|
| 46 |
images_container = st.empty()
|
|
|
|
| 38 |
uploaded_files = st.file_uploader("Upload image files", type=["jpg", "jpeg", "png"], accept_multiple_files=True)
|
| 39 |
|
| 40 |
if uploaded_files is not None:
|
| 41 |
+
col1, col2 = st.columns(2)
|
| 42 |
+
|
| 43 |
+
with col1:
|
| 44 |
+
left_mm = st.number_input("Crop from left (mm)", min_value=0.0, value=0.0, step=0.1)
|
| 45 |
+
with col2:
|
| 46 |
+
right_mm = st.number_input("Crop from right (mm)", min_value=0.0, value=0.0, step=0.1)
|
| 47 |
|
| 48 |
# Create a container to hold the cropped images
|
| 49 |
images_container = st.empty()
|