Lee-Shang commited on
Commit
72b05a2
·
1 Parent(s): eacfc78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -16
app.py CHANGED
@@ -110,7 +110,6 @@ A Demonstration of SARAI's Utility
110
  unsafe_allow_html=True,
111
  )
112
 
113
-
114
  st.write("##")
115
 
116
  with st.expander("Instructions for Use"):
@@ -131,9 +130,7 @@ with st.expander("Instructions for Use"):
131
 
132
  st.write("##")
133
 
134
-
135
-
136
- col1, col2 = st.columns([3,6])
137
  with col1:
138
  st.markdown(f"##### Set input image:")
139
 
@@ -166,19 +163,19 @@ with col1:
166
  image = sahi.utils.cv.read_image_as_pil(IMAGE_TO_URL[slider])
167
  st.image(image, width=300)
168
 
169
- with col2:
170
  st.markdown(f"##### YOLOX Standard vs SAHI Prediction:")
171
- static_component = image_comparison(
172
- img1=st.session_state["output_1"],
173
- img2=st.session_state["output_2"],
174
- label1="YOLOX",
175
- label2="SAHI+YOLOX",
176
- width=700,
177
- starting_position=50,
178
- show_labels=True,
179
- make_responsive=True,
180
- in_memory=True,
181
- )
182
 
183
  col1, col2, col3 = st.columns([4, 3, 4])
184
  with col2:
 
110
  unsafe_allow_html=True,
111
  )
112
 
 
113
  st.write("##")
114
 
115
  with st.expander("Instructions for Use"):
 
130
 
131
  st.write("##")
132
 
133
+ col1, col2, col3 = st.columns([3, 1, 6])
 
 
134
  with col1:
135
  st.markdown(f"##### Set input image:")
136
 
 
163
  image = sahi.utils.cv.read_image_as_pil(IMAGE_TO_URL[slider])
164
  st.image(image, width=300)
165
 
166
+ with col3:
167
  st.markdown(f"##### YOLOX Standard vs SAHI Prediction:")
168
+ static_component = image_comparison(
169
+ img1=st.session_state["output_1"],
170
+ img2=st.session_state["output_2"],
171
+ label1="YOLOX",
172
+ label2="SAHI+YOLOX",
173
+ width=700,
174
+ starting_position=50,
175
+ show_labels=True,
176
+ make_responsive=True,
177
+ in_memory=True,
178
+ )
179
 
180
  col1, col2, col3 = st.columns([4, 3, 4])
181
  with col2: