Saboorhsn commited on
Commit
18adb0d
·
verified ·
1 Parent(s): 0f6cf6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -0
app.py CHANGED
@@ -32,5 +32,12 @@ def main():
32
  save_combined_dataset_as_jsonl(combined_dataset, file_path)
33
  st.write(f"Combined dataset saved as JSONL file: {file_path}")
34
 
 
 
 
 
 
 
 
35
  if __name__ == "__main__":
36
  main()
 
32
  save_combined_dataset_as_jsonl(combined_dataset, file_path)
33
  st.write(f"Combined dataset saved as JSONL file: {file_path}")
34
 
35
+ # Add option to download the JSONL file
36
+ if st.button("Download Combined Dataset (JSONL)"):
37
+ file_path = "combined_dataset.jsonl"
38
+ save_combined_dataset_as_jsonl(combined_dataset, file_path)
39
+ st.write("Download the combined dataset as JSONL file:")
40
+ st.download_button(label="Download", data=open(file_path, "rb"), file_name="combined_dataset.jsonl")
41
+
42
  if __name__ == "__main__":
43
  main()