Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,6 +59,7 @@ processor = LinguisticPreprocessor()
|
|
| 59 |
train_data = load_dataset('rotten_tomatoes', split='train')
|
| 60 |
vocab, tokenizer = build_vocab(train_data)
|
| 61 |
stop_words = set(stopwords.words('english'))
|
|
|
|
| 62 |
|
| 63 |
############################################################# Text input
|
| 64 |
|
|
|
|
| 59 |
train_data = load_dataset('rotten_tomatoes', split='train')
|
| 60 |
vocab, tokenizer = build_vocab(train_data)
|
| 61 |
stop_words = set(stopwords.words('english'))
|
| 62 |
+
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
| 63 |
|
| 64 |
############################################################# Text input
|
| 65 |
|