Research-EAI commited on
Commit
28298f2
·
verified ·
1 Parent(s): 6f419c3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -9
README.md CHANGED
@@ -505,16 +505,10 @@ If you need to access private datasets or use authentication:
505
 
506
  ```python
507
  import daft
508
- import os
509
 
510
- # Set your Hugging Face token
511
- os.environ["HF_TOKEN"] = "your_huggingface_token_here"
512
-
513
- # Load with authentication
514
- df = daft.read_parquet(
515
- "hf://datasets/EssentialAI/essential-web-1t-sample-fdc-partitioned",
516
- hf_token=os.environ["HF_TOKEN"]
517
- )
518
  ```
519
 
520
  ### Installation Requirements
 
505
 
506
  ```python
507
  import daft
508
+ from daft.io import IOConfig, HTTPConfig
509
 
510
+ io_config = IOConfig(http=HTTPConfig(bearer_token="your_token"))
511
+ df = daft.read_parquet("hf://datasets/EssentialAI/essential-web", io_config=io_config)
 
 
 
 
 
 
512
  ```
513
 
514
  ### Installation Requirements