Update README.md
Browse files
README.md
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
---
|
2 |
-
|
3 |
language: ar
|
4 |
widget:
|
5 |
-
- text: "
|
|
|
6 |
datasets:
|
7 |
- Yah216/autotrain-data-Poem_meter_3
|
8 |
co2_eq_emissions: 404.66986451902227
|
@@ -11,7 +12,6 @@ co2_eq_emissions: 404.66986451902227
|
|
11 |
# Model Trained Using AutoTrain
|
12 |
|
13 |
- Problem type: Multi-class Classification
|
14 |
-
- Model ID: 914730015
|
15 |
- CO2 Emissions (in grams): 404.66986451902227
|
16 |
|
17 |
## Validation Metrics
|
@@ -34,7 +34,7 @@ co2_eq_emissions: 404.66986451902227
|
|
34 |
You can use cURL to access this model:
|
35 |
|
36 |
```
|
37 |
-
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "
|
38 |
```
|
39 |
|
40 |
Or Python API:
|
@@ -42,11 +42,11 @@ Or Python API:
|
|
42 |
```
|
43 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
44 |
|
45 |
-
model = AutoModelForSequenceClassification.from_pretrained("Yah216/
|
46 |
|
47 |
-
tokenizer = AutoTokenizer.from_pretrained("Yah216/
|
48 |
|
49 |
-
inputs = tokenizer("
|
50 |
|
51 |
outputs = model(**inputs)
|
52 |
```
|
|
|
1 |
---
|
2 |
+
---
|
3 |
language: ar
|
4 |
widget:
|
5 |
+
- text: "قفا نبك من ذِكرى حبيب ومنزلِ بسِقطِ اللِّوى بينَ الدَّخول فحَوْملِ"
|
6 |
+
- text: "سَلو قَلبي غَداةَ سَلا وَثابا لَعَلَّ عَلى الجَمالِ لَهُ عِتابا"
|
7 |
datasets:
|
8 |
- Yah216/autotrain-data-Poem_meter_3
|
9 |
co2_eq_emissions: 404.66986451902227
|
|
|
12 |
# Model Trained Using AutoTrain
|
13 |
|
14 |
- Problem type: Multi-class Classification
|
|
|
15 |
- CO2 Emissions (in grams): 404.66986451902227
|
16 |
|
17 |
## Validation Metrics
|
|
|
34 |
You can use cURL to access this model:
|
35 |
|
36 |
```
|
37 |
+
$ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "قفا نبك من ذِكرى حبيب ومنزلِ بسِقطِ اللِّوى بينَ الدَّخول فحَوْملِ"}' https://api-inference.huggingface.co/models/Yah216/Arabic_poem_meter_3
|
38 |
```
|
39 |
|
40 |
Or Python API:
|
|
|
42 |
```
|
43 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
|
44 |
|
45 |
+
model = AutoModelForSequenceClassification.from_pretrained("Yah216/Arabic_poem_meter_3", use_auth_token=True)
|
46 |
|
47 |
+
tokenizer = AutoTokenizer.from_pretrained("Yah216/Arabic_poem_meter_3", use_auth_token=True)
|
48 |
|
49 |
+
inputs = tokenizer("قفا نبك من ذِكرى حبيب ومنزلِ بسِقطِ اللِّوى بينَ الدَّخول فحَوْملِ", return_tensors="pt")
|
50 |
|
51 |
outputs = model(**inputs)
|
52 |
```
|