Saaquib commited on
Commit
2bc58c1
1 Parent(s): 6611cc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
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
- # Get user input for cropping dimensions
42
- left_mm = st.number_input("Crop from left (mm)", min_value=0.0, max_value=1000.0, value=0.0, step=0.1)
43
- right_mm = st.number_input("Crop from right (mm)", min_value=0.0, max_value=1000.0, value=0.0, step=0.1)
 
 
 
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()