Commit
Β·
7ce5480
1
Parent(s):
ee6a180
fix date
Browse files- app.py +11 -14
- requirements.txt +1 -1
- src/__pycache__/filter_utils.cpython-313.pyc +0 -0
- src/combined_data.json +0 -611
- src/filter_utils.py +4 -0
- src/{process_data_v2.py β process_data.py} +3 -1
app.py
CHANGED
@@ -95,20 +95,17 @@ with llm_calc_app:
|
|
95 |
)
|
96 |
|
97 |
with gr.Row():
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
type="string",
|
110 |
-
label="End Date"
|
111 |
-
)
|
112 |
|
113 |
# Multiodality Select
|
114 |
with gr.Row():
|
|
|
95 |
)
|
96 |
|
97 |
with gr.Row():
|
98 |
+
start_date = gr.DateTime(
|
99 |
+
value=min_date,
|
100 |
+
type="string",
|
101 |
+
label="Release Date Range π
- Start Date"
|
102 |
+
)
|
103 |
+
|
104 |
+
end_date = gr.DateTime(
|
105 |
+
value=max_date,
|
106 |
+
type="string",
|
107 |
+
label="End Date"
|
108 |
+
)
|
|
|
|
|
|
|
109 |
|
110 |
# Multiodality Select
|
111 |
with gr.Row():
|
requirements.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
beautifulsoup4==4.12.3
|
2 |
pandas==2.2.3
|
3 |
gradio_rangeslider==0.0.7
|
4 |
-
gradio==5.
|
5 |
langcodes==3.5.0
|
|
|
1 |
beautifulsoup4==4.12.3
|
2 |
pandas==2.2.3
|
3 |
gradio_rangeslider==0.0.7
|
4 |
+
gradio==5.12.0
|
5 |
langcodes==3.5.0
|
src/__pycache__/filter_utils.cpython-313.pyc
CHANGED
Binary files a/src/__pycache__/filter_utils.cpython-313.pyc and b/src/__pycache__/filter_utils.cpython-313.pyc differ
|
|
src/combined_data.json
DELETED
@@ -1,611 +0,0 @@
|
|
1 |
-
[
|
2 |
-
{
|
3 |
-
"model_name": "Meta-Llama-3-70B-Instruct-hf",
|
4 |
-
"pricing": {
|
5 |
-
"input_price": "0$",
|
6 |
-
"output_price": "0$",
|
7 |
-
"source": "https://huggingface.co/meta-llama/Meta-Llama-3-70B-Instruct"
|
8 |
-
},
|
9 |
-
"multimodality": {
|
10 |
-
"image": false,
|
11 |
-
"multiple_image": false,
|
12 |
-
"audio": false,
|
13 |
-
"video": false
|
14 |
-
},
|
15 |
-
"license": {
|
16 |
-
"name": "Meta Llama 3 License",
|
17 |
-
"url": "https://www.llama.com/llama3/license/"
|
18 |
-
},
|
19 |
-
"languages": ["en"],
|
20 |
-
"release_date": "2024-04-18",
|
21 |
-
"parameters":{
|
22 |
-
"estimated": false,
|
23 |
-
"size": "70B"
|
24 |
-
},
|
25 |
-
"open_weight": true,
|
26 |
-
"context_size": "8k"
|
27 |
-
},
|
28 |
-
{
|
29 |
-
"model_name": "Meta-Llama-3-8B-Instruct-hf",
|
30 |
-
"pricing": {
|
31 |
-
"input_price": "0$",
|
32 |
-
"output_price": "0$",
|
33 |
-
"source": "https://huggingface.co/meta-llama/Meta-Llama-3-8B-Instruct"
|
34 |
-
},
|
35 |
-
"multimodality": {
|
36 |
-
"image": false,
|
37 |
-
"multiple_image": false,
|
38 |
-
"audio": false,
|
39 |
-
"video": false
|
40 |
-
},
|
41 |
-
"license": {
|
42 |
-
"name": "Meta Llama 3 License",
|
43 |
-
"url": "https://www.llama.com/llama3/license/"
|
44 |
-
},
|
45 |
-
"languages": ["en"],
|
46 |
-
"release_date": "2024-04-18",
|
47 |
-
"parameters":{
|
48 |
-
"estimated": false,
|
49 |
-
"size": "8B"
|
50 |
-
},
|
51 |
-
"open_weight": true,
|
52 |
-
"context_size": "8k"
|
53 |
-
},
|
54 |
-
{
|
55 |
-
"model_name": "Meta-Llama-3.1-405B-Instruct-Turbo",
|
56 |
-
"pricing": {
|
57 |
-
"input_price": "0$",
|
58 |
-
"output_price": "0$",
|
59 |
-
"source": "https://huggingface.co/meta-llama/Llama-3.1-405B-Instruct"
|
60 |
-
},
|
61 |
-
"multimodality": {
|
62 |
-
"image": false,
|
63 |
-
"multiple_image": false,
|
64 |
-
"audio": false,
|
65 |
-
"video": false
|
66 |
-
},
|
67 |
-
"license": {
|
68 |
-
"name": "Llama 3.1 Community License",
|
69 |
-
"url": "https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/LICENSE"
|
70 |
-
},
|
71 |
-
"languages": ["en", "de", "fr", "it", "hi", "pt", "es", "th"],
|
72 |
-
"release_date": "2024-07-23",
|
73 |
-
"parameters":{
|
74 |
-
"estimated": false,
|
75 |
-
"size": "405B"
|
76 |
-
},
|
77 |
-
"open_weight": true,
|
78 |
-
"context_size": "128k"
|
79 |
-
},
|
80 |
-
{
|
81 |
-
"model_name": "Meta-Llama-3.1-70B-Instruct",
|
82 |
-
"pricing": {
|
83 |
-
"input_price": "0$",
|
84 |
-
"output_price": "0$",
|
85 |
-
"source": "https://huggingface.co/meta-llama/Llama-3.1-70B-Instruct"
|
86 |
-
},
|
87 |
-
"multimodality": {
|
88 |
-
"image": false,
|
89 |
-
"multiple_image": false,
|
90 |
-
"audio": false,
|
91 |
-
"video": false
|
92 |
-
},
|
93 |
-
"license": {
|
94 |
-
"name": "Llama 3.1 Community License",
|
95 |
-
"url": "https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/LICENSE"
|
96 |
-
},
|
97 |
-
"languages": ["en", "de", "fr", "it", "hi", "pt", "es", "th"],
|
98 |
-
"release_date": "2024-07-23",
|
99 |
-
"parameters": {
|
100 |
-
"estimated": false,
|
101 |
-
"size": "70B"
|
102 |
-
},
|
103 |
-
"open_weight": true,
|
104 |
-
"context_size": "128k"
|
105 |
-
},
|
106 |
-
{
|
107 |
-
"model_name": "Meta-Llama-3.1-8B-Instruct",
|
108 |
-
"pricing": {
|
109 |
-
"input_price": "0$",
|
110 |
-
"output_price": "0$",
|
111 |
-
"source": "https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct"
|
112 |
-
},
|
113 |
-
"multimodality": {
|
114 |
-
"image": false,
|
115 |
-
"multiple_image": false,
|
116 |
-
"audio": false,
|
117 |
-
"video": false
|
118 |
-
},
|
119 |
-
"license": {
|
120 |
-
"name": "Llama 3.1 Community License",
|
121 |
-
"url": "https://github.com/meta-llama/llama-models/blob/main/models/llama3_1/LICENSE"
|
122 |
-
},
|
123 |
-
"languages": ["en", "de", "fr", "it", "hi", "pt", "es", "th"],
|
124 |
-
"release_date": "2024-07-23",
|
125 |
-
"parameters": {
|
126 |
-
"estimated": false,
|
127 |
-
"size": "8B"
|
128 |
-
},
|
129 |
-
"open_weight": true,
|
130 |
-
"context_size": "128k"
|
131 |
-
},
|
132 |
-
{
|
133 |
-
"model_name": "InternVL2-40B",
|
134 |
-
"pricing": {
|
135 |
-
"input_price": "0$",
|
136 |
-
"output_price": "0$",
|
137 |
-
"source": "https://huggingface.co/OpenGVLab/InternVL2-40B"
|
138 |
-
},
|
139 |
-
"multimodality": {
|
140 |
-
"image": true,
|
141 |
-
"multiple_image": true,
|
142 |
-
"audio": false,
|
143 |
-
"video": false
|
144 |
-
},
|
145 |
-
"license": {
|
146 |
-
"name": "MIT",
|
147 |
-
"url": "https://choosealicense.com/licenses/mit/"
|
148 |
-
},
|
149 |
-
"languages": ["zh", "en", "fr", "es", "pt", "de", "it", "ru", "ja", "ko", "vi", "th", "ar"],
|
150 |
-
"release_date": "2024-07-15",
|
151 |
-
"parameters": {
|
152 |
-
"estimated": false,
|
153 |
-
"size": "40B"
|
154 |
-
},
|
155 |
-
"open_weight": true,
|
156 |
-
"context_size": "8k"
|
157 |
-
},
|
158 |
-
{
|
159 |
-
"model_name": "InternVL2-8B",
|
160 |
-
"pricing": {
|
161 |
-
"input_price": "0$",
|
162 |
-
"output_price": "0$",
|
163 |
-
"source": "https://huggingface.co/OpenGVLab/InternVL2-8B"
|
164 |
-
},
|
165 |
-
"multimodality": {
|
166 |
-
"image": true,
|
167 |
-
"multiple_image": true,
|
168 |
-
"audio": false,
|
169 |
-
"video": false
|
170 |
-
},
|
171 |
-
"license": {
|
172 |
-
"name": "MIT",
|
173 |
-
"url": "https://choosealicense.com/licenses/mit/"
|
174 |
-
},
|
175 |
-
"languages": ["zh", "en", "fr", "es", "pt", "de", "it", "ru", "ja", "ko", "vi", "th", "ar"],
|
176 |
-
"release_date": "2024-07-15",
|
177 |
-
"parameters": {
|
178 |
-
"estimated": false,
|
179 |
-
"size": "8B"
|
180 |
-
},
|
181 |
-
"open_weight": true,
|
182 |
-
"context_size": "8k"
|
183 |
-
},
|
184 |
-
{
|
185 |
-
"model_name": "InternVL2-Llama3-76B",
|
186 |
-
"pricing": {
|
187 |
-
"input_price": "0$",
|
188 |
-
"output_price": "0$",
|
189 |
-
"source": "https://huggingface.co/OpenGVLab/InternVL2-Llama3-76B"
|
190 |
-
},
|
191 |
-
"multimodality": {
|
192 |
-
"image": true,
|
193 |
-
"multiple_image": true,
|
194 |
-
"audio": false,
|
195 |
-
"video": false
|
196 |
-
},
|
197 |
-
"license": {
|
198 |
-
"name": "MIT",
|
199 |
-
"url": "https://choosealicense.com/licenses/mit/"
|
200 |
-
},
|
201 |
-
"languages": ["zh", "en", "fr", "es", "pt", "de", "it", "ru", "ja", "ko", "vi", "th", "ar"],
|
202 |
-
"release_date": "2024-07-15",
|
203 |
-
"parameters": {
|
204 |
-
"estimated": false,
|
205 |
-
"size": "76B"
|
206 |
-
},
|
207 |
-
"open_weight": true,
|
208 |
-
"context_size": "8k"
|
209 |
-
},
|
210 |
-
{
|
211 |
-
"model_name": "InternVL2-26B",
|
212 |
-
"pricing": {
|
213 |
-
"input_price": "0$",
|
214 |
-
"output_price": "0$",
|
215 |
-
"source": "https://huggingface.co/OpenGVLab/InternVL2-26B"
|
216 |
-
},
|
217 |
-
"multimodality": {
|
218 |
-
"image": true,
|
219 |
-
"multiple_image": true,
|
220 |
-
"audio": false,
|
221 |
-
"video": false
|
222 |
-
},
|
223 |
-
"license": {
|
224 |
-
"name": "MIT",
|
225 |
-
"url": "https://choosealicense.com/licenses/mit/"
|
226 |
-
},
|
227 |
-
"languages": ["zh", "en", "fr", "es", "pt", "de", "it", "ru", "ja", "ko", "vi", "th", "ar"],
|
228 |
-
"release_date": "2024-07-15",
|
229 |
-
"parameters": {
|
230 |
-
"estimated": false,
|
231 |
-
"size": "26B"
|
232 |
-
},
|
233 |
-
"open_weight": true,
|
234 |
-
"context_size": "8k"
|
235 |
-
},
|
236 |
-
|
237 |
-
{
|
238 |
-
"model_name": "InternVL2-26B",
|
239 |
-
"pricing": {
|
240 |
-
"input_price": "0$",
|
241 |
-
"output_price": "0$",
|
242 |
-
"source": "https://huggingface.co/OpenGVLab/InternVL2-26B"
|
243 |
-
},
|
244 |
-
"multimodality": {
|
245 |
-
"image": true,
|
246 |
-
"multiple_image": true,
|
247 |
-
"audio": false,
|
248 |
-
"video": false
|
249 |
-
},
|
250 |
-
"license": {
|
251 |
-
"name": "MIT",
|
252 |
-
"url": "https://choosealicense.com/licenses/mit/"
|
253 |
-
},
|
254 |
-
"languages": ["zh", "en", "fr", "es", "pt", "de", "it", "ru", "ja", "ko", "vi", "th", "ar"],
|
255 |
-
"release_date": "2024-07-15",
|
256 |
-
"parameters": {
|
257 |
-
"estimated": false,
|
258 |
-
"size": "26B"
|
259 |
-
},
|
260 |
-
"open_weight": true,
|
261 |
-
"context_size": "8k"
|
262 |
-
},
|
263 |
-
{
|
264 |
-
"model_name": "Mistral-Large-Instruct-2407",
|
265 |
-
"pricing": {
|
266 |
-
"input_price": "0$",
|
267 |
-
"output_price": "0$",
|
268 |
-
"source": "https://huggingface.co/mistralai/Mistral-Large-Instruct-2407"
|
269 |
-
},
|
270 |
-
"multimodality": {
|
271 |
-
"image": false,
|
272 |
-
"multiple_image": false,
|
273 |
-
"audio": false,
|
274 |
-
"video": false
|
275 |
-
},
|
276 |
-
"license": {
|
277 |
-
"name": "Apache 2.0",
|
278 |
-
"url": "https://www.apache.org/licenses/LICENSE-2.0"
|
279 |
-
},
|
280 |
-
"languages": ["en", "fr", "es", "de", "it", "ru", "zh", "ja", "ko"],
|
281 |
-
"release_date": "2024-06-12",
|
282 |
-
"parameters": {
|
283 |
-
"estimated": false,
|
284 |
-
"size": "70B"
|
285 |
-
},
|
286 |
-
"open_weight": true,
|
287 |
-
"context_size": "8k"
|
288 |
-
},
|
289 |
-
{
|
290 |
-
"model_name": "Mixtral-8x22B-Instruct-v0.1",
|
291 |
-
"pricing": {
|
292 |
-
"input_price": "0$",
|
293 |
-
"output_price": "0$",
|
294 |
-
"source": "https://huggingface.co/mistralai/Mixtral-8x22B-Instruct-v0.1"
|
295 |
-
},
|
296 |
-
"multimodality": {
|
297 |
-
"image": false,
|
298 |
-
"multiple_image": false,
|
299 |
-
"audio": false,
|
300 |
-
"video": false
|
301 |
-
},
|
302 |
-
"license": {
|
303 |
-
"name": "Apache 2.0",
|
304 |
-
"url": "https://www.apache.org/licenses/LICENSE-2.0"
|
305 |
-
},
|
306 |
-
"languages": ["en", "fr", "es", "de", "it", "ru"],
|
307 |
-
"release_date": "2024-04-17",
|
308 |
-
"parameters": {
|
309 |
-
"estimated": false,
|
310 |
-
"size": "141B"
|
311 |
-
},
|
312 |
-
"open_weight": true,
|
313 |
-
"context_size": "8k"
|
314 |
-
},
|
315 |
-
{
|
316 |
-
"model_name": "Mistral-7B-Instruct-v0.2",
|
317 |
-
"pricing": {
|
318 |
-
"input_price": "0$",
|
319 |
-
"output_price": "0$",
|
320 |
-
"source": "https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.2"
|
321 |
-
},
|
322 |
-
"multimodality": {
|
323 |
-
"image": false,
|
324 |
-
"multiple_image": false,
|
325 |
-
"audio": false,
|
326 |
-
"video": false
|
327 |
-
},
|
328 |
-
"license": {
|
329 |
-
"name": "Apache 2.0",
|
330 |
-
"url": "https://www.apache.org/licenses/LICENSE-2.0"
|
331 |
-
},
|
332 |
-
"languages": ["en", "fr", "es", "de", "it", "ru", "zh"],
|
333 |
-
"release_date": "2024-01-15",
|
334 |
-
"parameters": {
|
335 |
-
"estimated": false,
|
336 |
-
"size": "7B"
|
337 |
-
},
|
338 |
-
"open_weight": true,
|
339 |
-
"context_size": "8k"
|
340 |
-
},
|
341 |
-
{
|
342 |
-
"model_name": "Mistral-7B-Instruct-v0.1",
|
343 |
-
"pricing": {
|
344 |
-
"input_price": "0$",
|
345 |
-
"output_price": "0$",
|
346 |
-
"source": "https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.1"
|
347 |
-
},
|
348 |
-
"multimodality": {
|
349 |
-
"image": false,
|
350 |
-
"multiple_image": false,
|
351 |
-
"audio": false,
|
352 |
-
"video": false
|
353 |
-
},
|
354 |
-
"license": {
|
355 |
-
"name": "Apache 2.0",
|
356 |
-
"url": "https://www.apache.org/licenses/LICENSE-2.0"
|
357 |
-
},
|
358 |
-
"languages": ["en", "fr", "es", "de", "it", "ru", "zh"],
|
359 |
-
"release_date": "2023-12-11",
|
360 |
-
"parameters": {
|
361 |
-
"estimated": false,
|
362 |
-
"size": "7B"
|
363 |
-
},
|
364 |
-
"open_weight": true,
|
365 |
-
"context_size": "8k"
|
366 |
-
},
|
367 |
-
{
|
368 |
-
"model_name": "Mixtral-8x7B-Instruct-v0.1",
|
369 |
-
"pricing": {
|
370 |
-
"input_price": "0$",
|
371 |
-
"output_price": "0$",
|
372 |
-
"source": "https://huggingface.co/mistralai/Mixtral-8x7B-Instruct-v0.1"
|
373 |
-
},
|
374 |
-
"multimodality": {
|
375 |
-
"image": false,
|
376 |
-
"multiple_image": false,
|
377 |
-
"audio": false,
|
378 |
-
"video": false
|
379 |
-
},
|
380 |
-
"license": {
|
381 |
-
"name": "Apache 2.0",
|
382 |
-
"url": "https://www.apache.org/licenses/LICENSE-2.0"
|
383 |
-
},
|
384 |
-
"languages": ["en", "fr", "es", "de", "it", "ru"],
|
385 |
-
"release_date": "2023-12-11",
|
386 |
-
"parameters": {
|
387 |
-
"estimated": false,
|
388 |
-
"size": "46.7B"
|
389 |
-
},
|
390 |
-
"open_weight": true,
|
391 |
-
"context_size": "8k"
|
392 |
-
},
|
393 |
-
{
|
394 |
-
"model_name": "openchat-3.5-0106",
|
395 |
-
"pricing": {
|
396 |
-
"input_price": "0$",
|
397 |
-
"output_price": "0$",
|
398 |
-
"source": "https://huggingface.co/openchat/openchat-3.5-0106"
|
399 |
-
},
|
400 |
-
"multimodality": {
|
401 |
-
"image": false,
|
402 |
-
"multiple_image": false,
|
403 |
-
"audio": false,
|
404 |
-
"video": false
|
405 |
-
},
|
406 |
-
"license": {
|
407 |
-
"name": "Apache 2.0",
|
408 |
-
"url": "https://www.apache.org/licenses/LICENSE-2.0"
|
409 |
-
},
|
410 |
-
"languages": ["en"],
|
411 |
-
"release_date": "2024-01-06",
|
412 |
-
"parameters": {
|
413 |
-
"estimated": false,
|
414 |
-
"size": "7B"
|
415 |
-
},
|
416 |
-
"open_weight": true,
|
417 |
-
"context_size": "8k"
|
418 |
-
},
|
419 |
-
{
|
420 |
-
"model_name": "openchat-3.5-1210",
|
421 |
-
"pricing": {
|
422 |
-
"input_price": "0$",
|
423 |
-
"output_price": "0$",
|
424 |
-
"source": "https://huggingface.co/openchat/openchat-3.5-1210"
|
425 |
-
},
|
426 |
-
"multimodality": {
|
427 |
-
"image": false,
|
428 |
-
"multiple_image": false,
|
429 |
-
"audio": false,
|
430 |
-
"video": false
|
431 |
-
},
|
432 |
-
"license": {
|
433 |
-
"name": "Apache 2.0",
|
434 |
-
"url": "https://www.apache.org/licenses/LICENSE-2.0"
|
435 |
-
},
|
436 |
-
"languages": ["en"],
|
437 |
-
"release_date": "2023-12-10",
|
438 |
-
"parameters": {
|
439 |
-
"estimated": false,
|
440 |
-
"size": "7B"
|
441 |
-
},
|
442 |
-
"open_weight": true,
|
443 |
-
"context_size": "8k"
|
444 |
-
},
|
445 |
-
{
|
446 |
-
"model_name": "openchat_3.5",
|
447 |
-
"pricing": {
|
448 |
-
"input_price": "0$",
|
449 |
-
"output_price": "0$",
|
450 |
-
"source": "https://huggingface.co/openchat/openchat_3.5"
|
451 |
-
},
|
452 |
-
"multimodality": {
|
453 |
-
"image": false,
|
454 |
-
"multiple_image": false,
|
455 |
-
"audio": false,
|
456 |
-
"video": false
|
457 |
-
},
|
458 |
-
"license": {
|
459 |
-
"name": "Apache 2.0",
|
460 |
-
"url": "https://www.apache.org/licenses/LICENSE-2.0"
|
461 |
-
},
|
462 |
-
"languages": ["en"],
|
463 |
-
"release_date": "2023-10-30",
|
464 |
-
"parameters": {
|
465 |
-
"estimated": false,
|
466 |
-
"size": "7B"
|
467 |
-
},
|
468 |
-
"open_weight": true,
|
469 |
-
"context_size": "8k"
|
470 |
-
},
|
471 |
-
{
|
472 |
-
"model_name": "gpt-4o-mini-2024-07-18",
|
473 |
-
"pricing": {
|
474 |
-
"input_price": "$0.150",
|
475 |
-
"output_price": "$0.600",
|
476 |
-
"source": "https://openai.com/api/pricing/"
|
477 |
-
},
|
478 |
-
"multimodality": {
|
479 |
-
"image": true,
|
480 |
-
"multiple_image": true,
|
481 |
-
"audio": false,
|
482 |
-
"video": false
|
483 |
-
},
|
484 |
-
"license": {
|
485 |
-
"name": "Commercial License",
|
486 |
-
"url": "https://openai.com/policies/terms-of-use"
|
487 |
-
},
|
488 |
-
"languages": ["en", "es", "fr", "de", "zh", "ja", "ko", "it", "pt", "nl", "ru", "ar", "hi", "tr", "vi", "pl", "th", "sv", "da", "no", "fi", "hu", "cs", "sk", "ro", "bg", "uk", "lt", "lv", "et", "sl", "ms", "id", "tl", "sw", "am"],
|
489 |
-
"release_date": "2024-07-18",
|
490 |
-
"parameters": {
|
491 |
-
"estimated": true,
|
492 |
-
"size": "8B"
|
493 |
-
},
|
494 |
-
"open_weight": false,
|
495 |
-
"context_size": "128k"
|
496 |
-
},
|
497 |
-
{
|
498 |
-
"model_name": "gpt-4o-2024-08-06",
|
499 |
-
"pricing": {
|
500 |
-
"input_price": "$2.50",
|
501 |
-
"output_price": "$10.00",
|
502 |
-
"source": "https://openai.com/api/pricing/"
|
503 |
-
},
|
504 |
-
"multimodality": {
|
505 |
-
"image": true,
|
506 |
-
"multiple_image": true,
|
507 |
-
"audio": false,
|
508 |
-
"video": false
|
509 |
-
},
|
510 |
-
"license": {
|
511 |
-
"name": "Commercial License",
|
512 |
-
"url": "https://openai.com/policies/terms-of-use"
|
513 |
-
},
|
514 |
-
"languages": ["en", "es", "fr", "de", "zh", "ja", "ko", "it", "pt", "nl", "ru", "ar", "hi", "tr", "vi", "pl", "th", "sv", "da", "no", "fi", "hu", "cs", "sk", "ro", "bg", "uk", "lt", "lv", "et", "sl", "ms", "id", "tl", "sw", "am"],
|
515 |
-
"release_date": "2024-08-06",
|
516 |
-
"parameters": {
|
517 |
-
"estimated": true,
|
518 |
-
"size": "200B"
|
519 |
-
},
|
520 |
-
"open_weight": false,
|
521 |
-
"context_size": "128k"
|
522 |
-
},
|
523 |
-
{
|
524 |
-
"model_name": "gpt-4o-2024-05-13",
|
525 |
-
"pricing":{
|
526 |
-
"input_price": "$2.50",
|
527 |
-
"output_price": "$10.00",
|
528 |
-
"source": "https://openai.com/api/pricing/"
|
529 |
-
},
|
530 |
-
"multimodality": {
|
531 |
-
"image": true,
|
532 |
-
"multiple_image": true,
|
533 |
-
"audio": false,
|
534 |
-
"video": false
|
535 |
-
},
|
536 |
-
"license": {
|
537 |
-
"name": "Commercial License",
|
538 |
-
"url": "https://openai.com/policies/terms-of-use"
|
539 |
-
},
|
540 |
-
"languages": ["en", "es", "fr", "de", "zh", "ja", "ko", "it", "pt", "nl", "ru", "ar", "hi", "tr", "vi", "pl", "th", "sv", "da", "no", "fi", "hu", "cs", "sk", "ro", "bg", "uk", "lt", "lv", "et", "sl", "ms", "id", "tl", "sw", "am"],
|
541 |
-
"release_date": "2024-05-13",
|
542 |
-
"parameters": {
|
543 |
-
"estimated": true,
|
544 |
-
"size": "200B"
|
545 |
-
},
|
546 |
-
"open_weight": false,
|
547 |
-
"context_size": "128k"
|
548 |
-
},
|
549 |
-
{
|
550 |
-
"model_name": "gpt-4-1106-vision-preview",
|
551 |
-
"pricing": {
|
552 |
-
"input_price": "$10.00",
|
553 |
-
"output_price": "$30.00",
|
554 |
-
"source": "https://openai.com/api/pricing/"
|
555 |
-
},
|
556 |
-
"multimodality": {
|
557 |
-
"image": true,
|
558 |
-
"multiple_image": true,
|
559 |
-
"audio": false,
|
560 |
-
"video": false
|
561 |
-
},
|
562 |
-
"license": {
|
563 |
-
"name": "Commercial License",
|
564 |
-
"url": "https://openai.com/policies/terms-of-use"
|
565 |
-
},
|
566 |
-
"languages": ["en", "es", "fr", "de", "zh", "ja", "ko", "it", "pt", "nl", "ru", "ar", "hi", "tr", "vi", "pl", "th", "sv", "da", "no", "fi", "hu", "cs", "sk", "ro", "bg", "uk", "lt", "lv", "et", "sl", "ms", "id", "tl", "sw", "am"],
|
567 |
-
"release_date": "2023-11-06",
|
568 |
-
"parameters": {
|
569 |
-
"estimated": true,
|
570 |
-
"size": "1760B"
|
571 |
-
},
|
572 |
-
"open_weight": false,
|
573 |
-
"context_size": "128k"
|
574 |
-
},
|
575 |
-
{
|
576 |
-
"model_name": "gemini-1.5-flash-latest",
|
577 |
-
"pricing":{
|
578 |
-
"input_price": "$0.075",
|
579 |
-
"output_price": "$0.30",
|
580 |
-
"additional_prices": {
|
581 |
-
"context_caching": "$0.01875",
|
582 |
-
"context_storage": "$1.00",
|
583 |
-
"image_input": "$0.02",
|
584 |
-
"image_output": "$0.04",
|
585 |
-
"video_input": "$0.02",
|
586 |
-
"video_output": "$0.04",
|
587 |
-
"audio_input": "$0.02",
|
588 |
-
"audio_output": "$0.04"
|
589 |
-
},
|
590 |
-
"source": "https://cloud.google.com/vertex-ai/generative-ai/pricing"
|
591 |
-
},
|
592 |
-
"multimodality": {
|
593 |
-
"image": true,
|
594 |
-
"multiple_image": true,
|
595 |
-
"audio": true,
|
596 |
-
"video": true
|
597 |
-
},
|
598 |
-
"license": {
|
599 |
-
"name": "Commercial License",
|
600 |
-
"url": ""
|
601 |
-
},
|
602 |
-
"languages": ["lt", "no", "pl", "pt", "ro", "ru", "sr", "sk", "sl", "es", "sw", "sv", "th", "tr", "uk", "vi", "zh", "hr", "cs", "da", "nl", "en", "et", "fi", "fr", "de", "el", "he", "hi", "hu", "id", "it", "ja", "ko", "lv", "ar", "bn", "bg"],
|
603 |
-
"release_date": "2024-05-24",
|
604 |
-
"parameters": {
|
605 |
-
"estimated": true,
|
606 |
-
"size": "1760B"
|
607 |
-
},
|
608 |
-
"open_weight": false,
|
609 |
-
"context_size": "128k"
|
610 |
-
}
|
611 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
src/filter_utils.py
CHANGED
@@ -81,6 +81,9 @@ def filter(df, language_list, parameters, input_price, output_price, multimodal,
|
|
81 |
df = df[df['Open Weight'] == True]
|
82 |
elif "Commercial" in open_weight and "Open" not in open_weight:
|
83 |
df = df[df['Open Weight'] == False]
|
|
|
|
|
|
|
84 |
|
85 |
if not df.empty: # Check if df is non-empty
|
86 |
df = df[df['License Name'].apply(lambda x: any(lic in x for lic in license))]
|
@@ -98,6 +101,7 @@ def filter(df, language_list, parameters, input_price, output_price, multimodal,
|
|
98 |
df = df[(df['Temp Date'] >= start) & (df['Temp Date'] <= end)]
|
99 |
|
100 |
df = filter_cols(df)
|
|
|
101 |
|
102 |
print(df)
|
103 |
|
|
|
81 |
df = df[df['Open Weight'] == True]
|
82 |
elif "Commercial" in open_weight and "Open" not in open_weight:
|
83 |
df = df[df['Open Weight'] == False]
|
84 |
+
elif "Open" not in open_weight and "Commercial" not in open_weight:
|
85 |
+
# Return empty DataFrame with same columns
|
86 |
+
df = pd.DataFrame(columns=df.columns)
|
87 |
|
88 |
if not df.empty: # Check if df is non-empty
|
89 |
df = df[df['License Name'].apply(lambda x: any(lic in x for lic in license))]
|
|
|
101 |
df = df[(df['Temp Date'] >= start) & (df['Temp Date'] <= end)]
|
102 |
|
103 |
df = filter_cols(df)
|
104 |
+
df = df.sort_values(by='Clemscore', ascending=False)
|
105 |
|
106 |
print(df)
|
107 |
|
src/{process_data_v2.py β process_data.py}
RENAMED
@@ -144,8 +144,10 @@ def merge_data():
|
|
144 |
|
145 |
merged_df['Languages'] = merged_df['Languages'].apply(map_languages)
|
146 |
|
147 |
-
#
|
|
|
148 |
|
|
|
149 |
merged_df.drop(columns=['model_name'], inplace=True)
|
150 |
|
151 |
return merged_df
|
|
|
144 |
|
145 |
merged_df['Languages'] = merged_df['Languages'].apply(map_languages)
|
146 |
|
147 |
+
# Sort by Clemscore in descending order
|
148 |
+
merged_df = merged_df.sort_values(by='Clemscore', ascending=False)
|
149 |
|
150 |
+
# Drop model_name column
|
151 |
merged_df.drop(columns=['model_name'], inplace=True)
|
152 |
|
153 |
return merged_df
|