Ezi Ozoani commited on
Commit
386b032
1 Parent(s): b948acf
data_measurements/streamlit_utils.py CHANGED
@@ -22,8 +22,9 @@ from st_aggrid import AgGrid, GridOptionsBuilder
22
 
23
  from .dataset_utils import HF_DESC_FIELD, HF_FEATURE_FIELD, HF_LABEL_FIELD
24
  st.set_option('deprecation.showPyplotGlobalUse', False)
25
-
26
- _HAS_CACHE = json.load(open("cache_dir/has_cache.json"))
 
27
 
28
  def sidebar_header():
29
  st.sidebar.markdown(
 
22
 
23
  from .dataset_utils import HF_DESC_FIELD, HF_FEATURE_FIELD, HF_LABEL_FIELD
24
  st.set_option('deprecation.showPyplotGlobalUse', False)
25
+ json_file_path = "cache_dir/has_cache.json"
26
+ with open(json_file_path, "r", encoding="utf-8") as j:
27
+ HAS_CACHE = json.loads(j.read())
28
 
29
  def sidebar_header():
30
  st.sidebar.markdown(
log_files/dataset_statistics.log ADDED
File without changes
log_files/npmi.log ADDED
File without changes
log_files/zipf.log ADDED
File without changes