Weyaxi commited on
Commit
a5b7670
1 Parent(s): 71fd248

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -30,10 +30,14 @@ def get_sum(df_for_sum_function):
30
 
31
 
32
  def get_openllm_leaderboard():
33
- data = get_json_format_data()
34
- finished_models = get_datas(data)
35
- df = pd.DataFrame(finished_models)
36
- return df['Model'].tolist()
 
 
 
 
37
 
38
 
39
  def get_ranking(model_list, target_org):
 
30
 
31
 
32
  def get_openllm_leaderboard():
33
+ try:
34
+ data = get_json_format_data()
35
+ finished_models = get_datas(data)
36
+ df = pd.DataFrame(finished_models)
37
+ return df['Model'].tolist()
38
+ except Exception as e: # something is wrong about the leaderboard so return empty list
39
+ print(e)
40
+ return []
41
 
42
 
43
  def get_ranking(model_list, target_org):