mazancourt commited on
Commit
9cec535
1 Parent(s): 9de46b3

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -34,7 +34,7 @@ co2_eq_emissions: 1.06099358268878
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": "Il y a dans ce pays une fracture"}' https://api-inference.huggingface.co/models/mazancourt/autonlp-politics-sentence-classifier-23105051
38
  ```
39
 
40
  Or Python API:
@@ -44,7 +44,7 @@ from transformers import AutoModelForSequenceClassification, AutoTokenizer
44
 
45
  model = AutoModelForSequenceClassification.from_pretrained("mazancourt/autonlp-politics-sentence-classifier-23105051", use_auth_token=True)
46
 
47
- tokenizer = AutoTokenizer.from_pretrained("mazancourt/autonlp-politics-sentence-classifier-23105051", use_auth_token=True)
48
 
49
  inputs = tokenizer("Il y a dans ce pays une fracture", return_tensors="pt")
50
 
 
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": "Il y a dans ce pays une fracture"}' https://api-inference.huggingface.co/models/mazancourt/politics-sentence-classifier
38
  ```
39
 
40
  Or Python API:
 
44
 
45
  model = AutoModelForSequenceClassification.from_pretrained("mazancourt/autonlp-politics-sentence-classifier-23105051", use_auth_token=True)
46
 
47
+ tokenizer = AutoTokenizer.from_pretrained("mazancourt/politics-sentence-classifier", use_auth_token=True)
48
 
49
  inputs = tokenizer("Il y a dans ce pays une fracture", return_tensors="pt")
50