apsys commited on
Commit
31c09bf
1 Parent(s): c7e7fc9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -188,10 +188,11 @@ def update_board():
188
  data_list = [{"musicmc": 0.3021276595744681, "lawmc": 0.2800829875518672, "model": "apsys/saiga_3_8b", "moviesmc": 0.3472222222222222, "booksmc": 0.2800829875518672, "model_dtype": "torch.float16", "ppl": 0, 'mmluproru':0}]
189
  for file in glob.glob("./m_data/model_data/external/*.json"):
190
  with open(file) as f:
191
-
192
  data = json.load(f)
193
  data_list.append(data)
194
-
 
195
  if len(data_list) >1:
196
  data_list.pop(0)
197
  with open("genned.json", "w") as f:
 
188
  data_list = [{"musicmc": 0.3021276595744681, "lawmc": 0.2800829875518672, "model": "apsys/saiga_3_8b", "moviesmc": 0.3472222222222222, "booksmc": 0.2800829875518672, "model_dtype": "torch.float16", "ppl": 0, 'mmluproru':0}]
189
  for file in glob.glob("./m_data/model_data/external/*.json"):
190
  with open(file) as f:
191
+ try:
192
  data = json.load(f)
193
  data_list.append(data)
194
+ except Exception as e:
195
+ pass # data was badly formatted, should not fail
196
  if len(data_list) >1:
197
  data_list.pop(0)
198
  with open("genned.json", "w") as f: