Update README.md
Browse files
README.md
CHANGED
|
@@ -62,8 +62,10 @@ You can download the files locally by using the [huggingface-hub Python package]
|
|
| 62 |
For example:
|
| 63 |
|
| 64 |
```python
|
|
|
|
| 65 |
from huggingface_hub import hf_hub_download
|
| 66 |
|
| 67 |
-
local_path = hf_hub_download(repo_id="kyutai/dactory-models", filename="
|
| 68 |
-
|
|
|
|
| 69 |
```
|
|
|
|
| 62 |
For example:
|
| 63 |
|
| 64 |
```python
|
| 65 |
+
import fasttext
|
| 66 |
from huggingface_hub import hf_hub_download
|
| 67 |
|
| 68 |
+
local_path = hf_hub_download(repo_id="kyutai/dactory-models", filename="filter_en.bin")
|
| 69 |
+
model = fasttext.load_model(local_path)
|
| 70 |
+
print(model.predict("A computer scientist is a scientist who specializes in the academic study of computer science."))
|
| 71 |
```
|