JVice commited on
Commit
246a819
1 Parent(s): 9481076

Update user_evaluation_variables.py

Browse files
Files changed (1) hide show
  1. user_evaluation_variables.py +2 -2
user_evaluation_variables.py CHANGED
@@ -2,7 +2,7 @@ import yaml
2
  from yaml import safe_load
3
  import streamlit as st
4
  from pathlib import Path
5
- from huggingface_hub import CommitScheduler, login
6
 
7
  EVAL_DATABASE_DIR = Path("data")
8
  EVAL_DATABASE_DIR.mkdir(parents=True, exist_ok=True)
@@ -125,7 +125,7 @@ def update_evaluation_table(evalType, debugging):
125
  "Time": TIME,
126
  "Run Time": RUN_TIME
127
  }
128
- with open(evalDataPath, 'r') as f:
129
  yamlData = safe_load(f)
130
 
131
  if TASK_TARGET is None:
 
2
  from yaml import safe_load
3
  import streamlit as st
4
  from pathlib import Path
5
+ from huggingface_hub import CommitScheduler, login, hf_hub_download
6
 
7
  EVAL_DATABASE_DIR = Path("data")
8
  EVAL_DATABASE_DIR.mkdir(parents=True, exist_ok=True)
 
125
  "Time": TIME,
126
  "Run Time": RUN_TIME
127
  }
128
+ with open(hf_hub_download(repo_id="JVice/try-before-you-bias-data", filename=evalDataPath, repo_type="dataset"), 'r') as f:
129
  yamlData = safe_load(f)
130
 
131
  if TASK_TARGET is None: