kz209 commited on
Commit
f961a8f
1 Parent(s): 721e26b
Files changed (1) hide show
  1. pages/batch_evaluation.py +4 -1
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
- dataset = json.loads("test_samples/test_data.json")
 
 
 
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']