Update README.md
Browse files
README.md
CHANGED
@@ -1,15 +1,10 @@
|
|
1 |
---
|
2 |
-
tags: autotrain
|
3 |
language: unk
|
4 |
-
widget:
|
5 |
-
- text: "I love AutoTrain 🤗"
|
6 |
datasets:
|
7 |
- anwesham/autotrain-data-imdb-sentiment-analysis
|
8 |
co2_eq_emissions: 0.2033402242358345
|
9 |
---
|
10 |
|
11 |
-
# Model Trained Using AutoTrain
|
12 |
-
|
13 |
- Problem type: Binary Classification
|
14 |
- Model ID: 864927559
|
15 |
- CO2 Emissions (in grams): 0.2033402242358345
|
@@ -40,7 +35,7 @@ model = AutoModelForSequenceClassification.from_pretrained("anwesham/autotrain-i
|
|
40 |
|
41 |
tokenizer = AutoTokenizer.from_pretrained("anwesham/autotrain-imdb-sentiment-analysis-864927559", use_auth_token=True)
|
42 |
|
43 |
-
inputs = tokenizer("I love
|
44 |
|
45 |
outputs = model(**inputs)
|
46 |
```
|
|
|
1 |
---
|
|
|
2 |
language: unk
|
|
|
|
|
3 |
datasets:
|
4 |
- anwesham/autotrain-data-imdb-sentiment-analysis
|
5 |
co2_eq_emissions: 0.2033402242358345
|
6 |
---
|
7 |
|
|
|
|
|
8 |
- Problem type: Binary Classification
|
9 |
- Model ID: 864927559
|
10 |
- CO2 Emissions (in grams): 0.2033402242358345
|
|
|
35 |
|
36 |
tokenizer = AutoTokenizer.from_pretrained("anwesham/autotrain-imdb-sentiment-analysis-864927559", use_auth_token=True)
|
37 |
|
38 |
+
inputs = tokenizer("I love to eat food", return_tensors="pt")
|
39 |
|
40 |
outputs = model(**inputs)
|
41 |
```
|