Update README.md
Browse files
README.md
CHANGED
@@ -39,13 +39,13 @@ co2_eq_emissions:
|
|
39 |
|
40 |
## Usage
|
41 |
|
42 |
-
You can use cURL to access this model:
|
43 |
|
44 |
```
|
45 |
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/models/imranraad/autotrain-magpie-epie-combine-xlmr-metaphor-1595156286
|
46 |
```
|
47 |
|
48 |
-
Or Python API:
|
49 |
|
50 |
```
|
51 |
from transformers import AutoModelForTokenClassification, AutoTokenizer
|
@@ -59,7 +59,7 @@ inputs = tokenizer("I love AutoTrain", return_tensors="pt")
|
|
59 |
outputs = model(**inputs)
|
60 |
```
|
61 |
|
62 |
-
How to get the idioms:
|
63 |
|
64 |
```
|
65 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
|
|
|
39 |
|
40 |
## Usage
|
41 |
|
42 |
+
### You can use cURL to access this model:
|
43 |
|
44 |
```
|
45 |
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoTrain"}' https://api-inference.huggingface.co/models/imranraad/autotrain-magpie-epie-combine-xlmr-metaphor-1595156286
|
46 |
```
|
47 |
|
48 |
+
### Or Python API:
|
49 |
|
50 |
```
|
51 |
from transformers import AutoModelForTokenClassification, AutoTokenizer
|
|
|
59 |
outputs = model(**inputs)
|
60 |
```
|
61 |
|
62 |
+
### How to get the idioms:
|
63 |
|
64 |
```
|
65 |
from transformers import AutoTokenizer, AutoModelForTokenClassification
|