Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ def get_token_likelyhoods(model_name="Salesforce/codegen-350M-mono", text="World
19
  probs = F.softmax(out.logits, dim=-1).squeeze()
20
 
21
  output = []
22
- for tok, logits in zip(input_ids.squeeze()[1:], probs):
23
  output.append((
24
  tokenizer.decode(tok),
25
  str(round(logits[tok].item() * 100, 4)) + "%",
 
19
  probs = F.softmax(out.logits, dim=-1).squeeze()
20
 
21
  output = []
22
+ for tok, logits in zip(input_ids.squeeze(), probs):
23
  output.append((
24
  tokenizer.decode(tok),
25
  str(round(logits[tok].item() * 100, 4)) + "%",