lhoestq HF staff commited on
Commit
09dfd06
·
1 Parent(s): 7c55df2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -99,7 +99,7 @@ def _sorted_split_key(split: str) -> str:
99
  @lru_cache(maxsize=128)
100
  def get_parquet_splits(dataset: str, config: str) -> List[str]:
101
  fs = get_parquet_fs(dataset)
102
- return [path for path in fs.ls(config) if fs.isdir(path)]
103
 
104
 
105
  #####################################################
 
99
  @lru_cache(maxsize=128)
100
  def get_parquet_splits(dataset: str, config: str) -> List[str]:
101
  fs = get_parquet_fs(dataset)
102
+ return [path.split("/")[1] for path in fs.ls(config) if fs.isdir(path)]
103
 
104
 
105
  #####################################################