Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -55,26 +55,34 @@ def showdl(file_to_lookat,to_dl_sbs,to_dl_indel,to_dl_dbs,to_dl_sbs_text,to_dl_i
|
|
55 |
|
56 |
for j in np.arange(0,len(to_dl_indel)):
|
57 |
if to_dl_indel[j] != []:
|
58 |
-
|
59 |
{base64.b64encode(to_dl_indel[j]).decode()}" download=" \
|
60 |
{file_to_lookat[j].name}Indel.pdf">Download {file_to_lookat[j].name} indel pdf</a>'
|
61 |
-
|
62 |
{base64.b64encode(to_dl_indel_text[j]).decode()}" download=" \
|
63 |
{file_to_lookat[j].name}Indel.txt">Download {file_to_lookat[j].name} indel table</a>'
|
64 |
-
|
|
|
|
|
|
|
65 |
|
66 |
-
st.markdown(
|
|
|
67 |
for j in np.arange(0,len(to_dl_dbs)):
|
68 |
if to_dl_dbs[j] !=[]:
|
69 |
-
|
70 |
{base64.b64encode(to_dl_dbs[j]).decode()}" download=" \
|
71 |
{file_to_lookat[j].name}DBS.pdf">Download {file_to_lookat[j].name} Double Base Substitution pdf</a>'
|
72 |
-
|
73 |
{base64.b64encode(to_dl_dbs_text[j]).decode()}" download=" \
|
74 |
-
{file_to_lookat[j].name}DBS.txt">Download {file_to_lookat[j].name} Double Base Substitution table</a>'
|
75 |
-
|
|
|
|
|
|
|
76 |
|
77 |
-
st.markdown(
|
|
|
78 |
|
79 |
|
80 |
|
|
|
55 |
|
56 |
for j in np.arange(0,len(to_dl_indel)):
|
57 |
if to_dl_indel[j] != []:
|
58 |
+
download_link4 = f'<a href="data:application/octet-stream;base64, \
|
59 |
{base64.b64encode(to_dl_indel[j]).decode()}" download=" \
|
60 |
{file_to_lookat[j].name}Indel.pdf">Download {file_to_lookat[j].name} indel pdf</a>'
|
61 |
+
download_link5 = f'<a href="data:application/octet-stream;base64, \
|
62 |
{base64.b64encode(to_dl_indel_text[j]).decode()}" download=" \
|
63 |
{file_to_lookat[j].name}Indel.txt">Download {file_to_lookat[j].name} indel table</a>'
|
64 |
+
download_link6 = f'<a href="data:application/octet-stream;base64, \
|
65 |
+
{base64.b64encode(to_dl_id_summary_text[j]).decode()}" download=" \
|
66 |
+
{file_to_lookat[j].name}Indel.txt">Download {file_to_lookat[j].name} summary indel table</a>'
|
67 |
+
st.markdown(download_link4, unsafe_allow_html=True)
|
68 |
|
69 |
+
st.markdown(download_link5, unsafe_allow_html=True)
|
70 |
+
st.markdown(download_link6, unsafe_allow_html=True)
|
71 |
for j in np.arange(0,len(to_dl_dbs)):
|
72 |
if to_dl_dbs[j] !=[]:
|
73 |
+
download_link7 = f'<a href="data:application/octet-stream;base64, \
|
74 |
{base64.b64encode(to_dl_dbs[j]).decode()}" download=" \
|
75 |
{file_to_lookat[j].name}DBS.pdf">Download {file_to_lookat[j].name} Double Base Substitution pdf</a>'
|
76 |
+
download_link8 = f'<a href="data:application/octet-stream;base64, \
|
77 |
{base64.b64encode(to_dl_dbs_text[j]).decode()}" download=" \
|
78 |
+
{file_to_lookat[j].name}DBS.txt">Download {file_to_lookat[j].name} Double Base Substitution table</a>'
|
79 |
+
download_link9 = f'<a href="data:application/octet-stream;base64, \
|
80 |
+
{base64.b64encode(to_dl_dbs_summary_text[j]).decode()}" download=" \
|
81 |
+
{file_to_lookat[j].name}DBS.txt">Download {file_to_lookat[j].name} summary Double Base Substitution table</a>'
|
82 |
+
st.markdown(download_link7, unsafe_allow_html=True)
|
83 |
|
84 |
+
st.markdown(download_link8, unsafe_allow_html=True)
|
85 |
+
st.markdown(download_link9, unsafe_allow_html=True)
|
86 |
|
87 |
|
88 |
|