Update README.md
Browse files
README.md
CHANGED
|
@@ -14,14 +14,14 @@ Repository: [GitHub](https://github.com/epfl-nlp/language-identification)
|
|
| 14 |
## Usage
|
| 15 |
|
| 16 |
**Download the model**
|
| 17 |
-
```
|
| 18 |
from huggingface_hub import snapshot_download
|
| 19 |
|
| 20 |
snapshot_download(repo_id="Jakh0103/lid", local_dir="checkpoint")
|
| 21 |
```
|
| 22 |
|
| 23 |
**Use the model**
|
| 24 |
-
```
|
| 25 |
from model import LID
|
| 26 |
model = LID.from_pretrained(dir='checkpoint')
|
| 27 |
|
|
|
|
| 14 |
## Usage
|
| 15 |
|
| 16 |
**Download the model**
|
| 17 |
+
```python
|
| 18 |
from huggingface_hub import snapshot_download
|
| 19 |
|
| 20 |
snapshot_download(repo_id="Jakh0103/lid", local_dir="checkpoint")
|
| 21 |
```
|
| 22 |
|
| 23 |
**Use the model**
|
| 24 |
+
```python
|
| 25 |
from model import LID
|
| 26 |
model = LID.from_pretrained(dir='checkpoint')
|
| 27 |
|