Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -106,14 +106,15 @@ with tab1:
|
|
106 |
|
107 |
df = pd.DataFrame(table_data, columns=[str(h) for h in mutation_site_headers] + ["Edited Sites"])
|
108 |
st.dataframe(df)
|
109 |
-
|
110 |
st.download_button(
|
111 |
-
label="Download Binary Labels as CSV",
|
112 |
-
data=
|
113 |
-
file_name="
|
114 |
mime="text/csv"
|
115 |
)
|
116 |
|
|
|
117 |
with tab2:
|
118 |
st.write("Upload an image (JPG or PNG) to convert it into binary labels:")
|
119 |
uploaded_file = st.file_uploader("Choose an image file", type=["jpg", "jpeg", "png"])
|
|
|
106 |
|
107 |
df = pd.DataFrame(table_data, columns=[str(h) for h in mutation_site_headers] + ["Edited Sites"])
|
108 |
st.dataframe(df)
|
109 |
+
|
110 |
st.download_button(
|
111 |
+
label="Download Binary Labels Table as CSV",
|
112 |
+
data=df.to_csv(index=False),
|
113 |
+
file_name="binary_labels_table.csv",
|
114 |
mime="text/csv"
|
115 |
)
|
116 |
|
117 |
+
|
118 |
with tab2:
|
119 |
st.write("Upload an image (JPG or PNG) to convert it into binary labels:")
|
120 |
uploaded_file = st.file_uploader("Choose an image file", type=["jpg", "jpeg", "png"])
|