Spaces:
Sleeping
Sleeping
trust_remote_code=true when loading private dataset
Browse files
scripts/scripts_utils/plotly_interface.py
CHANGED
@@ -345,7 +345,7 @@ def load_predictor_from_hf(model_source: str = "TRI-ML/risk_biased_model", confi
|
|
345 |
return predictor
|
346 |
|
347 |
def load_dataset_from_hf(data_source: str = "jmercat/risk_biased_dataset") -> Dataset:
|
348 |
-
dataset = load_dataset(data_source, split="test")
|
349 |
return dataset
|
350 |
|
351 |
def main(load_from=None, cfg_path=None):
|
|
|
345 |
return predictor
|
346 |
|
347 |
def load_dataset_from_hf(data_source: str = "jmercat/risk_biased_dataset") -> Dataset:
|
348 |
+
dataset = load_dataset(data_source, split="test", trust_remote_code=True)
|
349 |
return dataset
|
350 |
|
351 |
def main(load_from=None, cfg_path=None):
|