Spaces:
Sleeping
Sleeping
kz209
commited on
Commit
•
f961a8f
1
Parent(s):
721e26b
fix json
Browse files
pages/batch_evaluation.py
CHANGED
@@ -47,7 +47,10 @@ def display_results(response_list):
|
|
47 |
|
48 |
def process(model_selection, prompt, num=10):
|
49 |
response_list = []
|
50 |
-
|
|
|
|
|
|
|
51 |
for data in dataset:
|
52 |
dialogue = data['dialogue']
|
53 |
format = data['format']
|
|
|
47 |
|
48 |
def process(model_selection, prompt, num=10):
|
49 |
response_list = []
|
50 |
+
with open("test_samples/test_data.json", "r") as file:
|
51 |
+
json_data = file.read()
|
52 |
+
dataset = json.loads(json_data)
|
53 |
+
|
54 |
for data in dataset:
|
55 |
dialogue = data['dialogue']
|
56 |
format = data['format']
|