Update README.md
Browse files
README.md
CHANGED
@@ -68,7 +68,7 @@ def to_low(text):
|
|
68 |
return text.strip().lower()
|
69 |
|
70 |
model_path = hf_hub_download(repo_id="ytzfhqs/fasttext-med-en-zh-identification", filename="model.bin")
|
71 |
-
model = fasttext.load_model(
|
72 |
model.predict(to_low('Hello, world!'))
|
73 |
```
|
74 |
|
@@ -122,6 +122,6 @@ def to_low(text):
|
|
122 |
return text.strip().lower()
|
123 |
|
124 |
model_path = hf_hub_download(repo_id="ytzfhqs/fasttext-med-en-zh-identification", filename="model.bin")
|
125 |
-
model = fasttext.load_model(
|
126 |
model.predict(to_low('Hello, world!'))
|
127 |
```
|
|
|
68 |
return text.strip().lower()
|
69 |
|
70 |
model_path = hf_hub_download(repo_id="ytzfhqs/fasttext-med-en-zh-identification", filename="model.bin")
|
71 |
+
model = fasttext.load_model(model_path)
|
72 |
model.predict(to_low('Hello, world!'))
|
73 |
```
|
74 |
|
|
|
122 |
return text.strip().lower()
|
123 |
|
124 |
model_path = hf_hub_download(repo_id="ytzfhqs/fasttext-med-en-zh-identification", filename="model.bin")
|
125 |
+
model = fasttext.load_model(model_path)
|
126 |
model.predict(to_low('Hello, world!'))
|
127 |
```
|