khhuiyh commited on
Commit
7b46102
·
1 Parent(s): c205b58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -82,6 +82,7 @@ def prediction_analyse(prediction_content,questiontype_list):
82
  print(f"Warning: Skipping invalid JSON data in line: {prediction}")
83
  continue
84
  question_id = str(prediction["ID"])
 
85
  item_gt = id2item[question_id]
86
  rule = item_gt['Rule']
87
  question_type = item_gt["Dimension"]
@@ -96,7 +97,6 @@ def prediction_analyse(prediction_content,questiontype_list):
96
  results[question_type]["correct"] += 1
97
 
98
  results[question_type]["total"] += 1
99
- break
100
  return results
101
 
102
 
@@ -107,7 +107,7 @@ scheduler = CommitScheduler(
107
  repo_type="dataset",
108
  folder_path="./file",
109
  path_in_repo="data",
110
- every=1,
111
  )
112
 
113
  def save_json(modelname, user_dict_list):
 
82
  print(f"Warning: Skipping invalid JSON data in line: {prediction}")
83
  continue
84
  question_id = str(prediction["ID"])
85
+ print("Evaluating ID: " + question_id)
86
  item_gt = id2item[question_id]
87
  rule = item_gt['Rule']
88
  question_type = item_gt["Dimension"]
 
97
  results[question_type]["correct"] += 1
98
 
99
  results[question_type]["total"] += 1
 
100
  return results
101
 
102
 
 
107
  repo_type="dataset",
108
  folder_path="./file",
109
  path_in_repo="data",
110
+ every=5,
111
  )
112
 
113
  def save_json(modelname, user_dict_list):