Evan Frick commited on
Commit
791e69b
·
1 Parent(s): 8b84991
Files changed (2) hide show
  1. app.py +5 -5
  2. results.json +0 -0
app.py CHANGED
@@ -1,6 +1,6 @@
1
  import streamlit as st
2
  import pandas as pd
3
- import pickle
4
  from os.path import split as path_split, splitext as path_splitext
5
 
6
  st.set_page_config(
@@ -15,18 +15,18 @@ st.title("PPE Metrics Explorer")
15
  @st.cache_data
16
  def load_data(file_path):
17
  """
18
- Load pickle data from a file.
19
  """
20
  with open(file_path, 'r') as file:
21
- data = pickle.load(file)
22
  return data
23
 
24
  def contains_list(column):
25
  return column.apply(lambda x: isinstance(x, list)).any()
26
 
27
  def main():
28
- # Load the pickle data
29
- data = load_data('results.pkl')
30
 
31
  # Extract the list of benchmarks
32
  benchmarks = list(data.keys())
 
1
  import streamlit as st
2
  import pandas as pd
3
+ import json
4
  from os.path import split as path_split, splitext as path_splitext
5
 
6
  st.set_page_config(
 
15
  @st.cache_data
16
  def load_data(file_path):
17
  """
18
+ Load json data from a file.
19
  """
20
  with open(file_path, 'r') as file:
21
+ data = json.load(file)
22
  return data
23
 
24
  def contains_list(column):
25
  return column.apply(lambda x: isinstance(x, list)).any()
26
 
27
  def main():
28
+ # Load the JSON data
29
+ data = load_data('results.json')
30
 
31
  # Extract the list of benchmarks
32
  benchmarks = list(data.keys())
results.json ADDED
The diff for this file is too large to render. See raw diff