Andrew Stirn commited on
Commit
daa1987
·
1 Parent(s): 5e69dea

reverse mode LUT

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -121,15 +121,15 @@ if __name__ == '__main__':
121
  )
122
  run = st.button(label='Get predictions!', on_click=process_input)
123
 
124
- # with RESULTS:
125
- # if run:
126
- # on_target, off_target = tiger.tiger_exhibit(
127
- # transcripts=st.session_state.transcripts,
128
- # mode=st.session_state.mode,
129
- # status=st.empty(),
130
- # progress_bar=st.progress(0),
131
- # check_off_targets=st.session_state.check_off_targets
132
- # )
133
 
134
  # # input-specific configuration
135
  # if manual_mode:
 
121
  )
122
  run = st.button(label='Get predictions!', on_click=process_input)
123
 
124
+ with RESULTS:
125
+ if run:
126
+ on_target, off_target = tiger.tiger_exhibit(
127
+ transcripts=st.session_state.transcripts,
128
+ mode={v: k for k, v in tiger.RUN_MODES.items()}[st.session_state.mode],
129
+ status=st.empty(),
130
+ progress_bar=st.progress(0),
131
+ check_off_targets=st.session_state.check_off_targets
132
+ )
133
 
134
  # # input-specific configuration
135
  # if manual_mode: