Spaces:
Sleeping
Sleeping
fatmacankara
commited on
Commit
•
8f90700
1
Parent(s):
ec06c4b
Update app.py
Browse files
app.py
CHANGED
@@ -66,25 +66,25 @@ with st.form('mform', clear_on_submit=False):
|
|
66 |
|
67 |
|
68 |
|
69 |
-
|
70 |
-
|
71 |
-
with st.spinner('In progress...This may take a while...'):
|
72 |
-
try:
|
73 |
-
if mode == 1:
|
74 |
-
selected_df = pdb_featureVector.pdb(input_set, mode, impute)
|
75 |
-
|
76 |
-
elif mode == 2:
|
77 |
-
selected_df = alphafold_featureVector.alphafold(input_set, mode, impute)
|
78 |
-
else:
|
79 |
-
selected_df = pd.DataFrame()
|
80 |
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
|
|
|
|
|
|
87 |
|
88 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
|
90 |
|
|
|
66 |
|
67 |
|
68 |
|
69 |
+
if submitted:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
|
71 |
+
with st.spinner('In progress...This may take a while...'):
|
72 |
+
try:
|
73 |
+
if mode == 1:
|
74 |
+
selected_df = pdb_featureVector.pdb(input_set, mode, impute)
|
75 |
+
|
76 |
+
elif mode == 2:
|
77 |
+
selected_df = alphafold_featureVector.alphafold(input_set, mode, impute)
|
78 |
+
else:
|
79 |
+
selected_df = pd.DataFrame()
|
80 |
|
81 |
+
st.write(selected_df)
|
82 |
+
except:
|
83 |
+
selected_df = pd.DataFrame()
|
84 |
+
pass
|
85 |
+
st.success('Feature vector successfully created.')
|
86 |
+
csv = convert_df(selected_df)
|
87 |
+
|
88 |
+
st.download_button("Press to Download the Feature Vector", csv,"ASCARIS_SAV_rep.csv","text/csv",key='download-csv')
|
89 |
|
90 |
|