alisrbdni commited on
Commit
c5baded
·
verified ·
1 Parent(s): ba0bbe2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -1017,6 +1017,15 @@ def read_log_file2():
1017
 
1018
  def main():
1019
  st.write("## Federated Learning with Dynamic Models and Datasets for Mobile Devices")
 
 
 
 
 
 
 
 
 
1020
  dataset_name = st.selectbox("Dataset", ["imdb", "amazon_polarity", "ag_news"])
1021
  model_name = st.selectbox("Model", ["bert-base-uncased", "facebook/hubert-base-ls960", "distilbert-base-uncased"])
1022
 
 
1017
 
1018
  def main():
1019
  st.write("## Federated Learning with Dynamic Models and Datasets for Mobile Devices")
1020
+ logs = read_log_file2()
1021
+ st.markdown(logs)
1022
+ # Provide a download button for the logs
1023
+ st.download_button(
1024
+ label="Download Logs",
1025
+ data=logs,
1026
+ file_name="./log.txt",
1027
+ mime="text/plain"
1028
+ )
1029
  dataset_name = st.selectbox("Dataset", ["imdb", "amazon_polarity", "ag_news"])
1030
  model_name = st.selectbox("Model", ["bert-base-uncased", "facebook/hubert-base-ls960", "distilbert-base-uncased"])
1031