carbonnnnn
commited on
Commit
·
529d871
1
Parent(s):
aecaa1a
minor changes
Browse files
__pycache__/app.cpython-310.pyc
CHANGED
Binary files a/__pycache__/app.cpython-310.pyc and b/__pycache__/app.cpython-310.pyc differ
|
|
utils/__pycache__/filter_utils.cpython-310.pyc
CHANGED
Binary files a/utils/__pycache__/filter_utils.cpython-310.pyc and b/utils/__pycache__/filter_utils.cpython-310.pyc differ
|
|
utils/__pycache__/text_utils.cpython-310.pyc
CHANGED
Binary files a/utils/__pycache__/text_utils.cpython-310.pyc and b/utils/__pycache__/text_utils.cpython-310.pyc differ
|
|
utils/filter_utils.py
CHANGED
@@ -8,11 +8,11 @@ def filter_cols(df):
|
|
8 |
'Model Name',
|
9 |
'Input $/1M',
|
10 |
'Output $/1M',
|
11 |
-
'Release Date',
|
12 |
-
'Context Size',
|
13 |
'Average Clemscore',
|
|
|
14 |
'Average Latency (s)',
|
15 |
'Parameter Size (B)',
|
|
|
16 |
'License'
|
17 |
]]
|
18 |
|
@@ -68,6 +68,10 @@ def filter(df, language_list, parameters, input_price, output_price, multimodal,
|
|
68 |
if not df.empty: # Check if df is non-empty
|
69 |
df = df[(df['Temp Date'] >= start) & (df['Temp Date'] <= end)]
|
70 |
|
|
|
|
|
|
|
71 |
df = filter_cols(df)
|
|
|
72 |
return df # Return the filtered dataframe
|
73 |
|
|
|
8 |
'Model Name',
|
9 |
'Input $/1M',
|
10 |
'Output $/1M',
|
|
|
|
|
11 |
'Average Clemscore',
|
12 |
+
'Context Size',
|
13 |
'Average Latency (s)',
|
14 |
'Parameter Size (B)',
|
15 |
+
'Release Date',
|
16 |
'License'
|
17 |
]]
|
18 |
|
|
|
68 |
if not df.empty: # Check if df is non-empty
|
69 |
df = df[(df['Temp Date'] >= start) & (df['Temp Date'] <= end)]
|
70 |
|
71 |
+
df = df.sort_values(by='Average Clemscore', ascending=False) # Sort in descending order
|
72 |
+
|
73 |
+
|
74 |
df = filter_cols(df)
|
75 |
+
|
76 |
return df # Return the filtered dataframe
|
77 |
|