Blanca commited on
Commit
ccf831d
·
verified ·
1 Parent(s): e991df5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -150,10 +150,11 @@ def add_new_eval(
150
  num_questions = 0
151
  task_ids = []
152
 
153
- with open(f"scored/{organisation}_{model}.jsonl", "w") as scored_file:
154
  with open(file_path, 'r') as f:
155
- for ix, line in enumerate(f):
156
- return format_error(line)
 
157
  #try:
158
  # task = json.loads(line)
159
  #except Exception:
 
150
  num_questions = 0
151
  task_ids = []
152
 
153
+ with open(f"scored/{organisation}_{model}.jsonl", "w") as scored_file:
154
  with open(file_path, 'r') as f:
155
+ data = json.load(f)
156
+ for ix, line in data.items():
157
+ return format_error(line['cqs'])
158
  #try:
159
  # task = json.loads(line)
160
  #except Exception: