LH-Tech-AI commited on
Commit
97805b4
·
verified ·
1 Parent(s): a73d4d4

Update use_with_UI.py

Browse files
Files changed (1) hide show
  1. use_with_UI.py +4 -0
use_with_UI.py CHANGED
@@ -82,6 +82,10 @@ else:
82
  if img:
83
  st.divider()
84
 
 
 
 
 
85
  # Use columns to keep the UI compact and side-by-side
86
  col_left, col_right = st.columns(2)
87
 
 
82
  if img:
83
  st.divider()
84
 
85
+ manual_angle = st.slider("Manual Pre-rotation", min_value=0, max_value=360, value=0, step=90)
86
+ if manual_angle != 0:
87
+ img = img.rotate(manual_angle, expand=True) # expand=True prevents cropping
88
+
89
  # Use columns to keep the UI compact and side-by-side
90
  col_left, col_right = st.columns(2)
91