Update README.md
Browse files
README.md
CHANGED
@@ -25,10 +25,11 @@ Please note textbook quality is a subset of high quality.
|
|
25 |
```python
|
26 |
from typing import List
|
27 |
import re
|
|
|
28 |
import fasttext
|
29 |
|
30 |
|
31 |
-
model = fasttext.load_model("
|
32 |
|
33 |
|
34 |
def replace_newlines(text: str) -> str:
|
|
|
25 |
```python
|
26 |
from typing import List
|
27 |
import re
|
28 |
+
from huggingface_hub import hf_hub_download
|
29 |
import fasttext
|
30 |
|
31 |
|
32 |
+
model = fasttext.load_model(hf_hub_download("kenhktsui/llm-data-textbook-quality-fasttext-classifer-v1", "model.bin"))
|
33 |
|
34 |
|
35 |
def replace_newlines(text: str) -> str:
|