Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Andrew Stirn
commited on
Commit
·
cf3bd3a
1
Parent(s):
f04eae6
cleanup
Browse files
app.py
CHANGED
|
@@ -12,12 +12,16 @@ def run_with_input(reset=False):
|
|
| 12 |
st.write("model prediction: ", returned_x)
|
| 13 |
return csv_x
|
| 14 |
|
| 15 |
-
|
|
|
|
|
|
|
| 16 |
st.session_state['userInput'] = ""
|
| 17 |
-
st.session_state["userInput"] = st.text_input('
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
|
|
|
|
|
|
| 21 |
run_with_input(reset=True)
|
| 22 |
elif all([True if item in "ACGTacgt" else False for item in st.session_state['userInput']]):
|
| 23 |
st.write('This is your sequence', st.session_state["userInput"])
|
|
|
|
| 12 |
st.write("model prediction: ", returned_x)
|
| 13 |
return csv_x
|
| 14 |
|
| 15 |
+
|
| 16 |
+
# title and instructions
|
| 17 |
+
st.title('TIGER Cas13 Efficacy Prediction')
|
| 18 |
st.session_state['userInput'] = ""
|
| 19 |
+
st.session_state["userInput"] = st.text_input('Enter target transcript (or substring):')
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
csv_data = pd.DataFrame.from_dict({'Target Site': [''], 'LFC': [0.0]}).to_csv()
|
| 23 |
+
if len(st.session_state['userInput']) < trun.GUIDE_LEN:
|
| 24 |
+
st.write('Transcript length must be >= 23 bases. It is {:d} chars'.format(len(st.session_state['userInput'])))
|
| 25 |
run_with_input(reset=True)
|
| 26 |
elif all([True if item in "ACGTacgt" else False for item in st.session_state['userInput']]):
|
| 27 |
st.write('This is your sequence', st.session_state["userInput"])
|