Transformers
TensorBoard
Safetensors
t5
text2text-generation
Generated from Trainer
text-generation-inference
Instructions to use datasetsANDmodels/occupation-extraction with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use datasetsANDmodels/occupation-extraction with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("datasetsANDmodels/occupation-extraction") model = AutoModelForSeq2SeqLM.from_pretrained("datasetsANDmodels/occupation-extraction") - Notebooks
- Google Colab
- Kaggle
Commit ·
4bc36fa
1
Parent(s): b653e77
Update usage.py
Browse files
usage.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import websockets
|
| 2 |
from transformers import pipeline
|
| 3 |
-
extractor = pipeline("text2text-generation", model="
|
| 4 |
intent ="I need a lawn mower for my garden"
|
| 5 |
label=extractor(intent)[0]["generated_text"]
|
| 6 |
if label=="":
|
|
|
|
| 1 |
import websockets
|
| 2 |
from transformers import pipeline
|
| 3 |
+
extractor = pipeline("text2text-generation", model="datasetsANDmodels/occupation_extraction")
|
| 4 |
intent ="I need a lawn mower for my garden"
|
| 5 |
label=extractor(intent)[0]["generated_text"]
|
| 6 |
if label=="":
|