dejanseo commited on
Commit
f693b94
·
verified ·
1 Parent(s): 86b4e16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -36,7 +36,8 @@ def classify(prompt: str):
36
  truncation=True,
37
  padding=True,
38
  max_length=512
39
- ).to(device)
 
40
  with torch.no_grad():
41
  logits = model(**inputs).logits
42
  probs = torch.softmax(logits, dim=-1).squeeze().cpu()
 
36
  truncation=True,
37
  padding=True,
38
  max_length=512
39
+ )
40
+
41
  with torch.no_grad():
42
  logits = model(**inputs).logits
43
  probs = torch.softmax(logits, dim=-1).squeeze().cpu()