madhurjindal commited on
Commit
ca5d7c2
1 Parent(s): ea96554

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -2,7 +2,7 @@
2
  tags: [autonlp]
3
  language: en
4
  widget:
5
- - text: "I love AutoNLP 🤗"
6
  datasets:
7
  - madhurjindal/autonlp-data-Gibberish-Detector
8
  co2_eq_emissions: 5.527544460835904
@@ -59,7 +59,7 @@ Thus, we break down the problem into 4 categories:
59
  You can use cURL to access this model:
60
 
61
  ```
62
- $ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love AutoNLP"}' https://api-inference.huggingface.co/models/madhurjindal/autonlp-Gibberish-Detector-492513457
63
  ```
64
 
65
  Or Python API:
@@ -71,7 +71,7 @@ model = AutoModelForSequenceClassification.from_pretrained("madhurjindal/autonlp
71
 
72
  tokenizer = AutoTokenizer.from_pretrained("madhurjindal/autonlp-Gibberish-Detector-492513457", use_auth_token=True)
73
 
74
- inputs = tokenizer("I love AutoNLP", return_tensors="pt")
75
 
76
  outputs = model(**inputs)
77
  ```
 
2
  tags: [autonlp]
3
  language: en
4
  widget:
5
+ - text: "I love Machine Learning!"
6
  datasets:
7
  - madhurjindal/autonlp-data-Gibberish-Detector
8
  co2_eq_emissions: 5.527544460835904
 
59
  You can use cURL to access this model:
60
 
61
  ```
62
+ $ curl -X POST -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"inputs": "I love Machine Learning!"}' https://api-inference.huggingface.co/models/madhurjindal/autonlp-Gibberish-Detector-492513457
63
  ```
64
 
65
  Or Python API:
 
71
 
72
  tokenizer = AutoTokenizer.from_pretrained("madhurjindal/autonlp-Gibberish-Detector-492513457", use_auth_token=True)
73
 
74
+ inputs = tokenizer("I love Machine Learning!", return_tensors="pt")
75
 
76
  outputs = model(**inputs)
77
  ```