FiendFlb commited on
Commit
217d225
·
verified ·
1 Parent(s): a354bd7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ def load_and_preprocess_data():
10
 
11
  # Extract "prompt" and "chosen"/"rejected" as input-output pairs
12
  def process_row(example):
13
- row = example['row'] # Access the 'row' key inside the example
14
  return {
15
  'prompt': row['prompt'],
16
  'chosen': row['chosen'],
 
10
 
11
  # Extract "prompt" and "chosen"/"rejected" as input-output pairs
12
  def process_row(example):
13
+ row = example['rows'] # Access the 'row' key inside the example
14
  return {
15
  'prompt': row['prompt'],
16
  'chosen': row['chosen'],