BennoKrojer commited on
Commit
925d019
·
1 Parent(s): 58bc1a3
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -31,10 +31,8 @@ images = [prefix+'/'+img_set+'/'+i for i in set2ids[img_set]]
31
  img_urls = images.copy()
32
  index = int(col2.number_input('Image Index from 0 to 9', value=0, min_value=0, max_value=9))
33
 
34
- if col1.button('Reveal groundtruth image index (try to guess yourself first!)'):
35
- st.session_state.show = True
36
- if col1.button('Hide groundtruth image index'):
37
- st.session_state.show = False
38
 
39
  col1.markdown(f'**Description**:')
40
  col1.markdown(f'**{descr}**')
 
31
  img_urls = images.copy()
32
  index = int(col2.number_input('Image Index from 0 to 9', value=0, min_value=0, max_value=9))
33
 
34
+ if col1.button('Click to reveal/hide groundtruth image index (try to guess yourself first!)'):
35
+ st.session_state.show = not st.session_state.show
 
 
36
 
37
  col1.markdown(f'**Description**:')
38
  col1.markdown(f'**{descr}**')