Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -173,8 +173,8 @@ def predict(text, tokenizer=tokenizer):
|
|
173 |
with torch.no_grad():
|
174 |
|
175 |
result = model(
|
176 |
-
tokenized_example_text['input_ids'].to(
|
177 |
-
attention_mask = tokenized_example_text['attention_masks'].to(
|
178 |
return_dict=True
|
179 |
).logits
|
180 |
|
|
|
173 |
with torch.no_grad():
|
174 |
|
175 |
result = model(
|
176 |
+
tokenized_example_text['input_ids'].to('cpu'),
|
177 |
+
attention_mask = tokenized_example_text['attention_masks'].to('cpu'),
|
178 |
return_dict=True
|
179 |
).logits
|
180 |
|