Instructions to use stormsidali2001/IMRAD_introduction_moves_classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TF-Keras
How to use stormsidali2001/IMRAD_introduction_moves_classifier with TF-Keras:
# Note: 'keras<3.x' or 'tf_keras' must be installed (legacy), and from_pretrained_keras was removed in huggingface_hub 1.0. # See https://github.com/keras-team/tf-keras for more details. # !pip install "huggingface_hub<1.0" tf_keras from huggingface_hub import from_pretrained_keras model = from_pretrained_keras("stormsidali2001/IMRAD_introduction_moves_classifier") - Notebooks
- Google Colab
- Kaggle
Set `library_name` to `tf-keras`.
Browse filesModel 'stormsidali2001/IMRAD_introduction_moves_classifier' seems to be compatible only with "Keras 2" and not "Keras 3". To distinguish them, models compatible with legacy Keras 2.x should be tagged as `tf-keras` while models compatible with Keras 3.x are tagged as `keras`.
This PR updates the model card to replace the explicit `library_name: keras` metadata which is now outdated by `library_name: tf-keras`. Updating this metadata will facilitate its discoverability and usage.
For more information about `keras` and `tf-keras` library names, check out this pull request: https://github.com/huggingface/huggingface.js/pull/774.
README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
| 1 |
---
|
| 2 |
-
library_name: keras
|
| 3 |
pipeline_tag: text-classification
|
| 4 |
widget:
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
---
|
| 14 |
|
| 15 |
## Model description
|
|
|
|
| 1 |
---
|
| 2 |
+
library_name: tf-keras
|
| 3 |
pipeline_tag: text-classification
|
| 4 |
widget:
|
| 5 |
+
- text: I liked this movie
|
| 6 |
+
output:
|
| 7 |
+
- label: MOVE_0
|
| 8 |
+
score: 0.8
|
| 9 |
+
- label: MOVE_1
|
| 10 |
+
score: 0.2
|
| 11 |
+
- label: MOVE_1
|
| 12 |
+
score: 0.2
|
| 13 |
---
|
| 14 |
|
| 15 |
## Model description
|