Update README.md
Browse filesAdd better example
README.md
CHANGED
@@ -7,7 +7,7 @@ tags:
|
|
7 |
widget:
|
8 |
- text: "Please add a like button!"
|
9 |
example_title: "Likely feature request"
|
10 |
-
- text: "
|
11 |
example_title: "Unlikely feature request"
|
12 |
---
|
13 |
|
@@ -21,8 +21,8 @@ pipe = pipeline("text-classification", model="Peterard/distilbert_feature_classi
|
|
21 |
pipe("Please add a like button!")
|
22 |
# [{'label': 'feature_request', 'score': 0.8930749893188477}]
|
23 |
|
24 |
-
pipe("
|
25 |
-
#[{'label': 'no_feature_request', 'score': 0.
|
26 |
```
|
27 |
|
28 |
N.B. The label will change depending on which is the likelier class
|
|
|
7 |
widget:
|
8 |
- text: "Please add a like button!"
|
9 |
example_title: "Likely feature request"
|
10 |
+
- text: "The app crashed when I opened it this morning. Can you fix this please?"
|
11 |
example_title: "Unlikely feature request"
|
12 |
---
|
13 |
|
|
|
21 |
pipe("Please add a like button!")
|
22 |
# [{'label': 'feature_request', 'score': 0.8930749893188477}]
|
23 |
|
24 |
+
pipe("The app crashed when I opened it this morning. Can you fix this please?")
|
25 |
+
#[{'label': 'no_feature_request', 'score': 0.9971746206283569}]
|
26 |
```
|
27 |
|
28 |
N.B. The label will change depending on which is the likelier class
|