Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwharris committed Aug 13, 2021
1 parent 3b03eba commit 38a978b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flash/core/data/data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,8 @@ def load_data(
) -> Sequence[Mapping[str, Any]]:
data, input_key, target_keys, root, resolver = data

if isinstance(data, str):
if isinstance(data, (str, Path)):
data = str(data)
data_frame = pd.read_csv(data)
if root is None:
root = os.path.dirname(data)
Expand Down

0 comments on commit 38a978b

Please sign in to comment.