Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,8 @@ async def get_first_rows(dataset: str, config: str, split: str) -> Dict[str, Dic
|
|
27 |
return response.json()
|
28 |
|
29 |
def get_df_from_rows(api_output):
|
30 |
-
|
|
|
31 |
|
32 |
async def update_configs(dataset_name: str):
|
33 |
splits = await get_splits(dataset_name)
|
|
|
27 |
return response.json()
|
28 |
|
29 |
def get_df_from_rows(api_output):
|
30 |
+
dfFromSort = pd.DataFrame([row["row"] for row in api_output["rows"]]).sort_values(by=0, axis=0, ascending=False, inplace=True, kind='mergesort', na_position='last', ignore_index=False, key=None)
|
31 |
+
return dfFromSort
|
32 |
|
33 |
async def update_configs(dataset_name: str):
|
34 |
splits = await get_splits(dataset_name)
|