Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import torch
|
|
| 6 |
# Load and preprocess dataset
|
| 7 |
def load_and_preprocess_data():
|
| 8 |
# Load the dataset from the uploaded JSON file
|
| 9 |
-
dataset = load_dataset('json', data_files='data
|
| 10 |
|
| 11 |
# Extract "prompt" and "chosen"/"rejected" as input-output pairs
|
| 12 |
def process_row(example):
|
|
|
|
| 6 |
# Load and preprocess dataset
|
| 7 |
def load_and_preprocess_data():
|
| 8 |
# Load the dataset from the uploaded JSON file
|
| 9 |
+
dataset = load_dataset('json', data_files='data.json') # Update path to your JSON file
|
| 10 |
|
| 11 |
# Extract "prompt" and "chosen"/"rejected" as input-output pairs
|
| 12 |
def process_row(example):
|