kz209 commited on
Commit
18b6d60
1 Parent(s): 252caca
Files changed (1) hide show
  1. pages/batch_evaluation.py +5 -1
pages/batch_evaluation.py CHANGED
@@ -3,6 +3,7 @@ import gradio as gr
3
 
4
  import json
5
  import html
 
6
 
7
  import numpy as np
8
 
@@ -56,7 +57,8 @@ def process(model_selection, prompt, num=10):
56
  json_data = file.read()
57
  dataset = json.loads(json_data)
58
 
59
- for data in dataset:
 
60
  dialogue = data['dialogue']
61
  format = data['format']
62
  summary = data['summary']
@@ -75,6 +77,8 @@ def process(model_selection, prompt, num=10):
75
  }
76
  )
77
 
 
 
78
  return display_results(response_list)
79
 
80
 
 
3
 
4
  import json
5
  import html
6
+ import logging
7
 
8
  import numpy as np
9
 
 
57
  json_data = file.read()
58
  dataset = json.loads(json_data)
59
 
60
+ for i, data in enumerate(dataset):
61
+ logging.info(f"Start testing datapoint {i+1}")
62
  dialogue = data['dialogue']
63
  format = data['format']
64
  summary = data['summary']
 
77
  }
78
  )
79
 
80
+ logging.info(f"Complete testing datapoint {i+1}")
81
+
82
  return display_results(response_list)
83
 
84