Skip to content

Commit 8abab96

Browse files
committed
Update README.md
mention ability to load and push to HF hub.
1 parent 2542e75 commit 8abab96

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ classifier.save("./my_classifier")
5454

5555
# Load it later
5656
loaded_classifier = AdaptiveClassifier.load("./my_classifier")
57+
58+
# The library is also integrated with Hugging Face. So you can push and load from HF Hub.
59+
60+
# Save to Hub
61+
classifier.push_to_hub("username/model-name")
62+
63+
# Load from Hub
64+
classifier = AdaptiveClassifier.from_pretrained("username/model-name")
5765
```
5866

5967
## Advanced Usage

0 commit comments

Comments
 (0)