Update README.md
Browse files
README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
tags: autotrain
|
3 |
language: en
|
4 |
widget:
|
5 |
-
- text: "
|
6 |
datasets:
|
7 |
- Shenzy2/autotrain-data-NER4DesignTutor
|
8 |
co2_eq_emissions: 0.004032656988228696
|
@@ -27,7 +27,7 @@ co2_eq_emissions: 0.004032656988228696
|
|
27 |
You can use cURL to access this model:
|
28 |
|
29 |
```
|
30 |
-
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "
|
31 |
```
|
32 |
|
33 |
Or Python API:
|
@@ -39,7 +39,7 @@ model = AutoModelForTokenClassification.from_pretrained("Shenzy2/autotrain-NER4D
|
|
39 |
|
40 |
tokenizer = AutoTokenizer.from_pretrained("Shenzy2/autotrain-NER4DesignTutor-1169643336", use_auth_token=True)
|
41 |
|
42 |
-
inputs = tokenizer("
|
43 |
|
44 |
outputs = model(**inputs)
|
45 |
```
|
|
|
2 |
tags: autotrain
|
3 |
language: en
|
4 |
widget:
|
5 |
+
- text: "Why is the username the largest part of each card?"
|
6 |
datasets:
|
7 |
- Shenzy2/autotrain-data-NER4DesignTutor
|
8 |
co2_eq_emissions: 0.004032656988228696
|
|
|
27 |
You can use cURL to access this model:
|
28 |
|
29 |
```
|
30 |
+
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "Why is the username the largest part of each card?"}' https://api-inference.huggingface.co/models/Shenzy2/autotrain-NER4DesignTutor-1169643336
|
31 |
```
|
32 |
|
33 |
Or Python API:
|
|
|
39 |
|
40 |
tokenizer = AutoTokenizer.from_pretrained("Shenzy2/autotrain-NER4DesignTutor-1169643336", use_auth_token=True)
|
41 |
|
42 |
+
inputs = tokenizer("Why is the username the largest part of each card?", return_tensors="pt")
|
43 |
|
44 |
outputs = model(**inputs)
|
45 |
```
|