CarolineM5 commited on
Commit
26dea75
·
verified ·
1 Parent(s): d2def57

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -202,16 +202,16 @@ if st.session_state.page == "evaluation":
202
  # img1 = match_brightness(img2, img1)
203
 
204
  elapsed = time.time() - st.session_state.start_time
 
 
 
 
 
 
205
  placeholder = Image.new("L", img1.size, 128)
206
 
207
  col1, col2 = st.columns(2)
208
 
209
- # with col1:
210
- # st.image(img1, caption="Image 1", use_container_width =True)
211
-
212
- # with col2:
213
- # st.image(img2, caption="Image 2", use_container_width =True)
214
-
215
  with col1:
216
  if elapsed < 10:
217
  st.image(img1, caption="Image 1", use_container_width=True)
 
202
  # img1 = match_brightness(img2, img1)
203
 
204
  elapsed = time.time() - st.session_state.start_time
205
+
206
+ remaining = max(0, 10 - int(elapsed))
207
+ st.markdown(f"**Time remaining:** {remaining} seconds")
208
+ percent = int((remaining / 10) * 100)
209
+ st.progress(percent)
210
+
211
  placeholder = Image.new("L", img1.size, 128)
212
 
213
  col1, col2 = st.columns(2)
214
 
 
 
 
 
 
 
215
  with col1:
216
  if elapsed < 10:
217
  st.image(img1, caption="Image 1", use_container_width=True)