Yah216 commited on
Commit
f1b79d6
1 Parent(s): b8f54d0

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +7 -10
README.md CHANGED
@@ -1,17 +1,14 @@
1
  ---
2
- tags: autotrain
3
  language: ar
4
- widget:
5
- - text: "I love AutoTrain 🤗"
6
  datasets:
7
- - Yah216/autotrain-data-Poem_Rawiy_detection
8
  co2_eq_emissions: 1.8046766441629636
9
  ---
10
 
11
- # Model Trained Using AutoTrain
12
 
13
  - Problem type: Multi-class Classification
14
- - Model ID: 918730150
15
  - CO2 Emissions (in grams): 1.8046766441629636
16
 
17
  ## Validation Metrics
@@ -34,7 +31,7 @@ co2_eq_emissions: 1.8046766441629636
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": "I love AutoTrain"}' https://api-inference.huggingface.co/models/Yah216/autotrain-Poem_Rawiy_detection-918730150
38
  ```
39
 
40
  Or Python API:
@@ -42,11 +39,11 @@ Or Python API:
42
  ```
43
  from transformers import AutoModelForSequenceClassification, AutoTokenizer
44
 
45
- model = AutoModelForSequenceClassification.from_pretrained("Yah216/autotrain-Poem_Rawiy_detection-918730150", use_auth_token=True)
46
 
47
- tokenizer = AutoTokenizer.from_pretrained("Yah216/autotrain-Poem_Rawiy_detection-918730150", use_auth_token=True)
48
 
49
- inputs = tokenizer("I love AutoTrain", return_tensors="pt")
50
 
51
  outputs = model(**inputs)
52
  ```
1
  ---
 
2
  language: ar
3
+
 
4
  datasets:
5
+ - Yah216/Poem_Rawiy_detection
6
  co2_eq_emissions: 1.8046766441629636
7
  ---
8
 
9
+ # Model
10
 
11
  - Problem type: Multi-class Classification
 
12
  - CO2 Emissions (in grams): 1.8046766441629636
13
 
14
  ## Validation Metrics
31
  You can use cURL to access this model:
32
 
33
  ```
34
+ $ 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/Yah216/Poem_Rawiy_detection
35
  ```
36
 
37
  Or Python API:
39
  ```
40
  from transformers import AutoModelForSequenceClassification, AutoTokenizer
41
 
42
+ model = AutoModelForSequenceClassification.from_pretrained("Yah216/Poem_Qafiyah_Detection", use_auth_token=True)
43
 
44
+ tokenizer = AutoTokenizer.from_pretrained("Yah216/Poem_Qafiyah_Detection", use_auth_token=True)
45
 
46
+ inputs = tokenizer("text, return_tensors="pt")
47
 
48
  outputs = model(**inputs)
49
  ```