Spaces:
Running
Running
MINGYISU
commited on
Commit
·
1fc5728
1
Parent(s):
b0ac257
fixed issues
Browse files
utils.py
CHANGED
@@ -126,7 +126,6 @@ def get_df():
|
|
126 |
sys.exit(f"Error: {response.status_code}")
|
127 |
df = pd.read_csv(io.StringIO(response.text))
|
128 |
df.to_csv(CSV_DIR, index=False) # update local file
|
129 |
-
df = pd.read_csv(CSV_DIR)
|
130 |
df['Model Size(B)'] = df['Model Size(B)'].apply(process_model_size)
|
131 |
df = df.sort_values(by=['Overall'], ascending=False)
|
132 |
return df
|
|
|
126 |
sys.exit(f"Error: {response.status_code}")
|
127 |
df = pd.read_csv(io.StringIO(response.text))
|
128 |
df.to_csv(CSV_DIR, index=False) # update local file
|
|
|
129 |
df['Model Size(B)'] = df['Model Size(B)'].apply(process_model_size)
|
130 |
df = df.sort_values(by=['Overall'], ascending=False)
|
131 |
return df
|