Nikhithapotnuru commited on
Commit
6905936
·
verified ·
1 Parent(s): a000c45

Update Home.py

Browse files
Files changed (1) hide show
  1. Home.py +3 -18
Home.py CHANGED
@@ -91,22 +91,6 @@ elif st.session_state.page == "Translation":
91
  if st.button("Back to Home Page"):
92
  navigate_to("Home")
93
 
94
- #Define descriptions on the affine transformation types
95
- descriptions = {
96
- '1.Translation(Shifting)' : "**Translation** : Shifts the image along x or y axis.",
97
- '2.Rotating' : "**Rotating** : Rotates the image by a certain angle.",
98
- '3.Scaling' : "**Scaling** : Zooming in or out.",
99
- '4.Cropping' : "**Cropping** : Random or center cropping.",
100
- '5.Stretching(shearing)': "**Stretching** : Vertical shearing slants the image along the y-axis,Horizontal shearing slants the image along the x-axis."
101
- }
102
-
103
- #Navigation menu
104
- step = st.selectbox("Select the type of affine transformation :",list(descriptions.keys()))
105
-
106
- # Display description
107
- st.write(descriptions[step])
108
-
109
-
110
 
111
  # Add a button to navigate to the Rotating page
112
  if step == '2.Rotating':
@@ -114,8 +98,8 @@ elif st.session_state.page == "Translation":
114
  navigate_to("Rotating")
115
 
116
  # Rotating
117
- elif st.session_state.page == "Rotating":
118
- st.title("2. 🔄 Rotation")
119
 
120
  # Content for Rotating
121
  st.write('''
@@ -141,6 +125,7 @@ elif st.session_state.page == "Translation":
141
 
142
  if st.button("Back to Home Page"):
143
  navigate_to("Home")
 
144
 
145
 
146
  # Add a button to navigate to the Scaling page
 
91
  if st.button("Back to Home Page"):
92
  navigate_to("Home")
93
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
 
95
  # Add a button to navigate to the Rotating page
96
  if step == '2.Rotating':
 
98
  navigate_to("Rotating")
99
 
100
  # Rotating
101
+ elif st.session_state.page == "Rotating":
102
+ st.title("2. 🔄 Rotation")
103
 
104
  # Content for Rotating
105
  st.write('''
 
125
 
126
  if st.button("Back to Home Page"):
127
  navigate_to("Home")
128
+
129
 
130
 
131
  # Add a button to navigate to the Scaling page