Commit
·
36827f3
1
Parent(s):
e6fb393
Update usage.py
Browse files
usage.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
from transformers import pipeline
|
| 2 |
-
extractor = pipeline("text2text-generation", model="purpose")
|
| 3 |
intent = " I am calling to invite you the meeting."
|
| 4 |
|
| 5 |
label=extractor(intent)[0]["generated_text"]
|
|
|
|
| 1 |
from transformers import pipeline
|
| 2 |
+
extractor = pipeline("text2text-generation", model="purpose-extraction")
|
| 3 |
intent = " I am calling to invite you the meeting."
|
| 4 |
|
| 5 |
label=extractor(intent)[0]["generated_text"]
|