CarolineM5 commited on
Commit
194da3d
·
verified ·
1 Parent(s): 93af217

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -194,18 +194,18 @@ if st.session_state.page == "evaluation":
194
  img2 = Image.open(pair[1][1])
195
  img2 = img2.convert("L")
196
 
197
- if pair[0][0] == "GT":
198
- img2 = match_brightness(img1, img2)
199
- else:
200
- img1 = match_brightness(img2, img1)
201
 
202
  col1, col2 = st.columns(2)
203
 
204
- # with col1:
205
- # st.image(img1, caption="Image 1", use_container_width =True)
206
 
207
- # with col2:
208
- # st.image(img2, caption="Image 2", use_container_width =True)
209
 
210
  choice = st.radio("Select the real image: ", options=["1", "2"], horizontal = True) #, index=None
211
 
 
194
  img2 = Image.open(pair[1][1])
195
  img2 = img2.convert("L")
196
 
197
+ # if pair[0][0] == "GT":
198
+ # img2 = match_brightness(img1, img2)
199
+ # else:
200
+ # img1 = match_brightness(img2, img1)
201
 
202
  col1, col2 = st.columns(2)
203
 
204
+ with col1:
205
+ st.image(img1, caption="Image 1", use_container_width =True)
206
 
207
+ with col2:
208
+ st.image(img2, caption="Image 2", use_container_width =True)
209
 
210
  choice = st.radio("Select the real image: ", options=["1", "2"], horizontal = True) #, index=None
211