Amit Kumar commited on
Commit
cb500ea
·
1 Parent(s): 4a542e2

send the input to cpu

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -27,7 +27,7 @@ def predict(text: str):
27
  'distilbert-base-uncased'
28
  )
29
 
30
- input = tokenizer(text, return_tensors="pt").to(DEVICE)
31
 
32
  model.eval()
33
  with torch.inference_mode():
 
27
  'distilbert-base-uncased'
28
  )
29
 
30
+ input = tokenizer(text, return_tensors="pt").to("cpu")
31
 
32
  model.eval()
33
  with torch.inference_mode():