Instructions to use ModelForge/spam-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Scikit-learn
How to use ModelForge/spam-classifier with Scikit-learn:
from huggingface_hub import hf_hub_download import joblib model = joblib.load( hf_hub_download("ModelForge/spam-classifier", "sklearn_model.joblib") ) # only load pickle files from sources you trust # read more about it here https://skops.readthedocs.io/en/stable/persistence.html - Notebooks
- Google Colab
- Kaggle
Sam Chaudry commited on
Add files using upload-large-folder tool
Browse files- upload_to_huggingface.py +14 -1
upload_to_huggingface.py
CHANGED
|
@@ -13,7 +13,20 @@ upload_large_folder(
|
|
| 13 |
repo_id=repo_id,
|
| 14 |
folder_path=".",
|
| 15 |
repo_type="model",
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
)
|
| 18 |
|
| 19 |
|
|
|
|
| 13 |
repo_id=repo_id,
|
| 14 |
folder_path=".",
|
| 15 |
repo_type="model",
|
| 16 |
+
ignore_patterns=[
|
| 17 |
+
"venv/*",
|
| 18 |
+
".env",
|
| 19 |
+
"__pycache__/*",
|
| 20 |
+
"*.pyc",
|
| 21 |
+
"*.pkl",
|
| 22 |
+
"*.ipynb",
|
| 23 |
+
"tests/*",
|
| 24 |
+
".DS_Store",
|
| 25 |
+
".vscode/*",
|
| 26 |
+
"cache/*",
|
| 27 |
+
".git/*",
|
| 28 |
+
"*.log"
|
| 29 |
+
]
|
| 30 |
)
|
| 31 |
|
| 32 |
|