alisrbdni commited on
Commit
6c4f924
·
verified ·
1 Parent(s): be7b4da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -361,7 +361,7 @@ def parse_log(log_lines):
361
  clients = {}
362
  memory_usage = []
363
 
364
- round_pattern = re.compile(r'\[ROUND (\d+)\]')
365
  client_pattern = re.compile(r'Client (\d+) \| (INFO|DEBUG) \| (.*)')
366
  memory_pattern = re.compile(r'memory used=(\d+\.\d+)GB')
367
 
@@ -502,6 +502,7 @@ def main():
502
 
503
  for round_num in range(NUM_ROUNDS):
504
  st.write(f"### Round {round_num + 1}")
 
505
  plot_placeholders = [st.empty() for _ in range(NUM_CLIENTS)]
506
 
507
  fl.simulation.start_simulation(
 
361
  clients = {}
362
  memory_usage = []
363
 
364
+ round_pattern = re.compile(r'ROUND(\d+)ROUND (\d+)')
365
  client_pattern = re.compile(r'Client (\d+) \| (INFO|DEBUG) \| (.*)')
366
  memory_pattern = re.compile(r'memory used=(\d+\.\d+)GB')
367
 
 
502
 
503
  for round_num in range(NUM_ROUNDS):
504
  st.write(f"### Round {round_num + 1}")
505
+ st.markdown(read_log_file())
506
  plot_placeholders = [st.empty() for _ in range(NUM_CLIENTS)]
507
 
508
  fl.simulation.start_simulation(