Commit
·
056790c
1
Parent(s):
bd34510
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,37 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
tags:
|
| 3 |
-
- text-classification
|
| 4 |
-
language:
|
| 5 |
-
- en
|
| 6 |
-
widget:
|
| 7 |
-
- text: But heaven knows I'm miserable now
|
| 8 |
-
datasets:
|
| 9 |
-
- yigitkucuk/poem-sentimentale-dataset
|
| 10 |
-
---
|
| 11 |
-
|
| 12 |
-
# Model
|
| 13 |
-
|
| 14 |
-
- Problem type: Multi-class Classification
|
| 15 |
-
- Model ID: 3099088026
|
| 16 |
-
|
| 17 |
-
## Usage
|
| 18 |
-
|
| 19 |
-
You can use cURL to access this model:
|
| 20 |
-
|
| 21 |
-
```
|
| 22 |
-
$ 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/yigitkucuk/Poem-Sentimentale
|
| 23 |
-
```
|
| 24 |
-
|
| 25 |
-
Or Python API:
|
| 26 |
-
|
| 27 |
-
```
|
| 28 |
-
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
| 29 |
-
|
| 30 |
-
model = AutoModelForSequenceClassification.from_pretrained("yigitkucuk/Poem-Sentimentale", use_auth_token=True)
|
| 31 |
-
|
| 32 |
-
tokenizer = AutoTokenizer.from_pretrained("yigitkucuk/poem-sentimentale-dataset", use_auth_token=True)
|
| 33 |
-
|
| 34 |
-
inputs = tokenizer("I love AutoTrain", return_tensors="pt")
|
| 35 |
-
|
| 36 |
-
outputs = model(**inputs)
|
| 37 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|