ytzfhqs commited on
Commit
0e06b1c
1 Parent(s): 276713d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
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('fasttext.bin')
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('fasttext.bin')
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
  ```