Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Andrew Stirn
commited on
Commit
·
7867f0a
1
Parent(s):
0c6f011
cleanup
Browse files
app.py
CHANGED
|
@@ -7,13 +7,6 @@ ENTRY_METHODS = dict(
|
|
| 7 |
fasta="Fasta file upload (supports multiple transcripts if they have unique ID's)"
|
| 8 |
)
|
| 9 |
|
| 10 |
-
# containers
|
| 11 |
-
DOCUMENTATION = st.container()
|
| 12 |
-
MODE_SELECTION = st.container()
|
| 13 |
-
TRANSCRIPT_ENTRY = st.container()
|
| 14 |
-
RUNTIME = st.container()
|
| 15 |
-
RESULTS = st.container()
|
| 16 |
-
|
| 17 |
|
| 18 |
@st.cache_data
|
| 19 |
def convert_df(df):
|
|
@@ -99,11 +92,11 @@ if __name__ == '__main__':
|
|
| 99 |
st.session_state.off_target = None
|
| 100 |
|
| 101 |
# title and documentation
|
| 102 |
-
with
|
| 103 |
st.title('TIGER Cas13 Efficacy Prediction')
|
| 104 |
|
| 105 |
# mode selection
|
| 106 |
-
with
|
| 107 |
col1, col2 = st.columns([0.65, 0.35])
|
| 108 |
with col1:
|
| 109 |
st.radio(
|
|
@@ -121,7 +114,7 @@ if __name__ == '__main__':
|
|
| 121 |
)
|
| 122 |
|
| 123 |
# transcript entry
|
| 124 |
-
with
|
| 125 |
st.selectbox(
|
| 126 |
label='How would you like to provide transcript(s) of interest?',
|
| 127 |
options=ENTRY_METHODS.values(),
|
|
@@ -143,12 +136,12 @@ if __name__ == '__main__':
|
|
| 143 |
)
|
| 144 |
|
| 145 |
# runtime
|
| 146 |
-
with
|
| 147 |
st.button(label='Get predictions!', on_click=initiate_run, disabled=st.session_state.transcripts is not None)
|
| 148 |
progress = st.empty()
|
| 149 |
|
| 150 |
# results
|
| 151 |
-
with
|
| 152 |
|
| 153 |
# input error
|
| 154 |
if st.session_state.input_error is not None:
|
|
|
|
| 7 |
fasta="Fasta file upload (supports multiple transcripts if they have unique ID's)"
|
| 8 |
)
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
@st.cache_data
|
| 12 |
def convert_df(df):
|
|
|
|
| 92 |
st.session_state.off_target = None
|
| 93 |
|
| 94 |
# title and documentation
|
| 95 |
+
with st.container():
|
| 96 |
st.title('TIGER Cas13 Efficacy Prediction')
|
| 97 |
|
| 98 |
# mode selection
|
| 99 |
+
with st.container():
|
| 100 |
col1, col2 = st.columns([0.65, 0.35])
|
| 101 |
with col1:
|
| 102 |
st.radio(
|
|
|
|
| 114 |
)
|
| 115 |
|
| 116 |
# transcript entry
|
| 117 |
+
with st.container():
|
| 118 |
st.selectbox(
|
| 119 |
label='How would you like to provide transcript(s) of interest?',
|
| 120 |
options=ENTRY_METHODS.values(),
|
|
|
|
| 136 |
)
|
| 137 |
|
| 138 |
# runtime
|
| 139 |
+
with st.container():
|
| 140 |
st.button(label='Get predictions!', on_click=initiate_run, disabled=st.session_state.transcripts is not None)
|
| 141 |
progress = st.empty()
|
| 142 |
|
| 143 |
# results
|
| 144 |
+
with st.container():
|
| 145 |
|
| 146 |
# input error
|
| 147 |
if st.session_state.input_error is not None:
|