Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
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,
|