Update app.py
Browse files
app.py
CHANGED
@@ -51,17 +51,13 @@ def get_openllm_leaderboard():
|
|
51 |
script_elements = soup.find_all('script')
|
52 |
data = json.loads(str(script_elements[1])[31:-10])
|
53 |
|
54 |
-
component_index =
|
55 |
-
pattern = r'href="([^"]*)"'
|
56 |
-
zero_or_one = 1
|
57 |
|
58 |
result_list = []
|
59 |
i = 0
|
60 |
while True:
|
61 |
try:
|
62 |
-
|
63 |
-
normal_name = re.search(pattern, unfiltered).group(1)
|
64 |
-
normal_name = "/".join(normal_name.split("/")[-2:])
|
65 |
result_list.append(normal_name)
|
66 |
i += 1
|
67 |
except (IndexError, AttributeError):
|
|
|
51 |
script_elements = soup.find_all('script')
|
52 |
data = json.loads(str(script_elements[1])[31:-10])
|
53 |
|
54 |
+
component_index = 15
|
|
|
|
|
55 |
|
56 |
result_list = []
|
57 |
i = 0
|
58 |
while True:
|
59 |
try:
|
60 |
+
normal_name = data['components'][component_index]['props']['value']['data'][i][-1]
|
|
|
|
|
61 |
result_list.append(normal_name)
|
62 |
i += 1
|
63 |
except (IndexError, AttributeError):
|