Skip to content

Commit

Permalink
ruff passes
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjha01 committed Jul 11, 2024
1 parent 82b4934 commit 7445114
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dgeb/tasks/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import logging
from typing import List, Literal, Optional, Any
from importlib.metadata import version, PackageNotFoundError
from importlib.metadata import version
from enum import Enum
import datasets
from pydantic import BaseModel, model_validator
Expand All @@ -12,7 +12,7 @@
# HACK: if Modality is not defined, then import it from modality.py
try:
from ..modality import Modality
except:
except Exception:
# if not, super hack to get the leaderboard working.
# SHOULD MATCH the code exactly in modality.py
# can we read the file and run that code?
Expand Down
4 changes: 1 addition & 3 deletions leaderboard/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,7 @@ def task_results_to_df(model_results: List[TaskResult]) -> pd.DataFrame:
(df["Task Name"] == task)
& (df["Task Category"] == category)
].drop(columns=columns_to_hide)
).dropna(
axis=1, how="all"
) # drop all NaN columns for Overall tab
).dropna(axis=1, how="all") # drop all NaN columns for Overall tab
# round all values to 4 decimal places
rounded_df = filtered_df.round(SIG_FIGS)

Expand Down

0 comments on commit 7445114

Please sign in to comment.