Update app.py
Browse files
app.py
CHANGED
@@ -30,10 +30,14 @@ def get_sum(df_for_sum_function):
|
|
30 |
|
31 |
|
32 |
def get_openllm_leaderboard():
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
|
|
|
|
|
|
|
|
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):
|