felix commited on
Commit
d1b3326
1 Parent(s): 33867cb
Files changed (3) hide show
  1. app.py +15 -6
  2. make_image.py +7 -0
  3. white_image.png +0 -0
app.py CHANGED
@@ -6,7 +6,7 @@ import glob
6
  import os
7
  from datetime import datetime
8
 
9
- #st.set_page_config(layout="wide")
10
  st.title('Meta Open LLM leaderboard')
11
 
12
  directories = os.listdir("./data")
@@ -41,6 +41,7 @@ st.divider()
41
  data_path = './data/' + data_dir
42
 
43
  imgs = glob.glob(os.path.join(data_path, '*.png'))
 
44
 
45
  # Extracting images that start with "hf_llm_diagram"
46
  hf_llm_diagrams = [img for img in imgs if 'hf_llm_diagram' in os.path.basename(img)]
@@ -91,15 +92,20 @@ def print_model_list(file_name, st, split_into_two=False):
91
  final_html += "</ul>"
92
  st.write(final_html, unsafe_allow_html=True)
93
 
94
- st.write("HuggingFace Open LLM leaderboard by Model Size")
95
- st.image(hf_llm_diagrams[0],use_column_width="auto")
96
 
97
- print_model_list(hf_llm_diagrams[0],st,True)
 
 
 
 
 
 
 
 
98
 
99
  cols = st.columns(2)
100
  cols[0].image(hf_llm_diagrams[1],caption="Other or commercially permissive licenses only", use_column_width="auto")
101
 
102
-
103
  print_model_list(hf_llm_diagrams[1],cols[0])
104
 
105
  cols[1].image(hf_llm_diagrams[2],caption="Commercially permissive license only", use_column_width="auto")
@@ -109,7 +115,10 @@ print_model_list(hf_llm_diagrams[2],cols[1])
109
  st.divider()
110
 
111
  st.write("Big Code Models Leaderboard")
112
- st.image(bigcode_diagrams[0],use_column_width="auto")
 
 
 
113
 
114
  print_model_list(bigcode_diagrams[0],st,True)
115
 
 
6
  import os
7
  from datetime import datetime
8
 
9
+ st.set_page_config(layout="wide")
10
  st.title('Meta Open LLM leaderboard')
11
 
12
  directories = os.listdir("./data")
 
41
  data_path = './data/' + data_dir
42
 
43
  imgs = glob.glob(os.path.join(data_path, '*.png'))
44
+ white_image = './white_image.png'
45
 
46
  # Extracting images that start with "hf_llm_diagram"
47
  hf_llm_diagrams = [img for img in imgs if 'hf_llm_diagram' in os.path.basename(img)]
 
92
  final_html += "</ul>"
93
  st.write(final_html, unsafe_allow_html=True)
94
 
 
 
95
 
96
+ cols = st.columns(2)
97
+
98
+ cols[0].write("HuggingFace Open LLM leaderboard by Model Size")
99
+ cols[0].image(hf_llm_diagrams[0], use_column_width="auto")
100
+ cols[1].write(" ")
101
+ cols[1].image(white_image, use_column_width="auto")
102
+
103
+ print_model_list(hf_llm_diagrams[0],st, True)
104
+ st.divider()
105
 
106
  cols = st.columns(2)
107
  cols[0].image(hf_llm_diagrams[1],caption="Other or commercially permissive licenses only", use_column_width="auto")
108
 
 
109
  print_model_list(hf_llm_diagrams[1],cols[0])
110
 
111
  cols[1].image(hf_llm_diagrams[2],caption="Commercially permissive license only", use_column_width="auto")
 
115
  st.divider()
116
 
117
  st.write("Big Code Models Leaderboard")
118
+ cols = st.columns(2)
119
+ cols[0].image(bigcode_diagrams[0], use_column_width="auto")
120
+ cols[1].write(" ")
121
+ cols[1].image(white_image, use_column_width="auto")
122
 
123
  print_model_list(bigcode_diagrams[0],st,True)
124
 
make_image.py ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ from PIL import Image
2
+
3
+ # Create a new image with the specified dimensions
4
+ img = Image.new('RGB', (1525, 1526), color='white')
5
+
6
+ # Save the image
7
+ img.save('white_image.png')
white_image.png ADDED