Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -42,6 +42,10 @@ In `.var`:
|
|
| 42 |
import anndata
|
| 43 |
from huggingface_hub import hf_hub_download
|
| 44 |
|
| 45 |
-
file_path = hf_hub_download(
|
| 46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 47 |
```
|
|
|
|
| 42 |
import anndata
|
| 43 |
from huggingface_hub import hf_hub_download
|
| 44 |
|
| 45 |
+
file_path = hf_hub_download(
|
| 46 |
+
repo_id="Genentech/tutorial-2-data",
|
| 47 |
+
repo_type="dataset",
|
| 48 |
+
filename="data.h5ad"
|
| 49 |
+
)
|
| 50 |
+
ad = anndata.read_h5ad(file_path)
|
| 51 |
```
|