alisrbdni commited on
Commit
d97267e
·
verified ·
1 Parent(s): 0030fd8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -568,7 +568,7 @@ def parse_log(log_lines):
568
  clients = {}
569
  memory_usage = []
570
 
571
- round_pattern = re.compile(r'\[ROUND (\d+)\]')
572
  client_pattern = re.compile(r'Client (\d+) \| (INFO|DEBUG) \| (.*)')
573
  memory_pattern = re.compile(r'memory used=(\d+\.\d+)GB')
574
 
@@ -709,7 +709,7 @@ def main():
709
  st.write(f"### Round {round_num + 1} ✅")
710
 
711
  logs = read_log_file2()
712
-
713
  # Extract relevant data
714
  accuracy_pattern = re.compile(r"'accuracy': \{(\d+), ([\d.]+)\}")
715
  loss_pattern = re.compile(r"'loss': \{(\d+), ([\d.]+)\}")
@@ -779,7 +779,7 @@ def main():
779
  # Display log.txt content
780
  st.write("## Training Log")
781
  st.write(read_log_file2())
782
-
783
  st.write("## Training Log Analysis")
784
  log_lines = read_log_file()
785
  rounds, clients, memory_usage = parse_log(log_lines)
 
568
  clients = {}
569
  memory_usage = []
570
 
571
+ round_pattern = re.compile(r'ROUND(\d+)ROUND (\d+)')
572
  client_pattern = re.compile(r'Client (\d+) \| (INFO|DEBUG) \| (.*)')
573
  memory_pattern = re.compile(r'memory used=(\d+\.\d+)GB')
574
 
 
709
  st.write(f"### Round {round_num + 1} ✅")
710
 
711
  logs = read_log_file2()
712
+ st.markdown(logs)
713
  # Extract relevant data
714
  accuracy_pattern = re.compile(r"'accuracy': \{(\d+), ([\d.]+)\}")
715
  loss_pattern = re.compile(r"'loss': \{(\d+), ([\d.]+)\}")
 
779
  # Display log.txt content
780
  st.write("## Training Log")
781
  st.write(read_log_file2())
782
+
783
  st.write("## Training Log Analysis")
784
  log_lines = read_log_file()
785
  rounds, clients, memory_usage = parse_log(log_lines)