astirn commited on
Commit
08495a9
·
1 Parent(s): 227367c
Files changed (1) hide show
  1. app.py +10 -8
app.py CHANGED
@@ -136,14 +136,16 @@ if __name__ == '__main__':
136
  st.button(label='Get predictions!', on_click=process_input)
137
 
138
  with RESULTS:
139
- if run:
140
- on_target, off_target = tiger.tiger_exhibit(
141
- transcripts=st.session_state.transcripts,
142
- mode={v: k for k, v in tiger.RUN_MODES.items()}[st.session_state.mode],
143
- status=st.empty(),
144
- progress_bar=st.progress(0),
145
- check_off_targets=st.session_state.check_off_targets
146
- )
 
 
147
 
148
  # # valid input
149
  # if src_seq and all([True if nt.upper() in NUCLEOTIDE_TOKENS.keys() else False for nt in src_seq]):
 
136
  st.button(label='Get predictions!', on_click=process_input)
137
 
138
  with RESULTS:
139
+ if st.session_state.run:
140
+ st.session_state.run = False
141
+ print('RUNNING')
142
+ # on_target, off_target = tiger.tiger_exhibit(
143
+ # transcripts=st.session_state.transcripts,
144
+ # mode={v: k for k, v in tiger.RUN_MODES.items()}[st.session_state.mode],
145
+ # status=st.empty(),
146
+ # progress_bar=st.progress(0),
147
+ # check_off_targets=st.session_state.check_off_targets
148
+ # )
149
 
150
  # # valid input
151
  # if src_seq and all([True if nt.upper() in NUCLEOTIDE_TOKENS.keys() else False for nt in src_seq]):