qisan commited on
Commit
7687d77
1 Parent(s): 7ce2ced

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ model.eval()
29
 
30
  def analyse(text):
31
  #text = "I'm depressed"
32
- model = model.to('cpu')
33
  tokenizer = BertTokenizer.from_pretrained('bert-base-cased')
34
  encoding = tokenizer.encode_plus(text, max_length=32, add_special_tokens=True, # Add '[CLS]' and '[SEP]'
35
  return_token_type_ids=False,
 
29
 
30
  def analyse(text):
31
  #text = "I'm depressed"
32
+ #model = model.to('cpu')
33
  tokenizer = BertTokenizer.from_pretrained('bert-base-cased')
34
  encoding = tokenizer.encode_plus(text, max_length=32, add_special_tokens=True, # Add '[CLS]' and '[SEP]'
35
  return_token_type_ids=False,