Spaces:
Running
Running
using cpu
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ from transformers import AutoTokenizer
|
|
| 5 |
from transformers import pipeline
|
| 6 |
|
| 7 |
model_path = "trnt/twitter_emotions"
|
| 8 |
-
is_gpu =
|
| 9 |
device = torch.device('cuda') if is_gpu else torch.device('cpu')
|
| 10 |
print(device)
|
| 11 |
model = AutoModelForSequenceClassification.from_pretrained(model_path)
|
|
|
|
| 5 |
from transformers import pipeline
|
| 6 |
|
| 7 |
model_path = "trnt/twitter_emotions"
|
| 8 |
+
is_gpu = False
|
| 9 |
device = torch.device('cuda') if is_gpu else torch.device('cpu')
|
| 10 |
print(device)
|
| 11 |
model = AutoModelForSequenceClassification.from_pretrained(model_path)
|