efeperro commited on
Commit
b459f36
1 Parent(s): b35dedb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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