wenjun99 commited on
Commit
4ba9b2f
·
verified ·
1 Parent(s): b3236d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
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=','.join(str(b) for b in binary_labels),
113
- file_name="binary_labels.csv",
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"])