Update app.py
Browse files
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['
|
| 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'],
|