alisrbdni commited on
Commit
11edc3b
·
verified ·
1 Parent(s): 3411705

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -471,10 +471,8 @@ def plot_metrics(rounds, clients, memory_usage):
471
  def read_log_file2():
472
  with open("./log.txt", "r") as file:
473
  return file.read()
474
- import streamlit as st
475
  def main():
476
-
477
- st.markdown(print(st.logger._loggers))
478
  st.write("## Federated Learning with Dynamic Models and Datasets for Mobile Devices")
479
  dataset_name = st.selectbox("Dataset", ["imdb", "amazon_polarity", "ag_news"])
480
  model_name = st.selectbox("Model", ["bert-base-uncased", "facebook/hubert-base-ls960", "distilbert-base-uncased"])
@@ -534,7 +532,9 @@ def main():
534
  )
535
 
536
  for round_num in range(NUM_ROUNDS):
537
- st.write(f"### Round {round_num + 1}")
 
 
538
  st.markdown(read_log_file2())
539
  logs = read_log_file2()
540
  import re
 
471
  def read_log_file2():
472
  with open("./log.txt", "r") as file:
473
  return file.read()
 
474
  def main():
475
+
 
476
  st.write("## Federated Learning with Dynamic Models and Datasets for Mobile Devices")
477
  dataset_name = st.selectbox("Dataset", ["imdb", "amazon_polarity", "ag_news"])
478
  model_name = st.selectbox("Model", ["bert-base-uncased", "facebook/hubert-base-ls960", "distilbert-base-uncased"])
 
532
  )
533
 
534
  for round_num in range(NUM_ROUNDS):
535
+ st.write(f"### Round {round_num + 1}")
536
+
537
+ st.markdown(print(st.logger._loggers))
538
  st.markdown(read_log_file2())
539
  logs = read_log_file2()
540
  import re