use offline for precached stream dataset (#2453)
This commit is contained in:
@@ -19,7 +19,7 @@ def reload_modules(hf_hub_offline):
|
||||
importlib.reload(huggingface_hub.constants)
|
||||
huggingface_hub.constants.HF_HUB_OFFLINE = hf_hub_offline
|
||||
importlib.reload(datasets.config)
|
||||
datasets.config.HF_HUB_OFFLINE = hf_hub_offline
|
||||
setattr(datasets.config, "HF_HUB_OFFLINE", hf_hub_offline)
|
||||
reset_sessions()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user