Update README.md
Browse files
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
|
509 |
|
510 |
-
|
511 |
-
|
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
|