Amit Kumar
commited on
Commit
·
cb500ea
1
Parent(s):
4a542e2
send the input to cpu
Browse files
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(
|
| 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():
|