imvladikon commited on
Commit
ec92a80
โ€ข
1 Parent(s): 8016cd6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -41,7 +41,7 @@ for token in top_5_tokens:
41
  # ืื™ืœืช ื”ื™ื ืžื˜ืจื•ืคื•ืœื™ืŸ ื”ืžื”ื•ื•ื” ืืช ืžืจื›ื– ื”ื›ืœื›ืœื”
42
  ```
43
 
44
- ```
45
  def ppl_naive(text, model, tokenizer):
46
  input = tokenizer.encode(text, return_tensors="pt")
47
  loss = model(input, labels=input)[0]
 
41
  # ืื™ืœืช ื”ื™ื ืžื˜ืจื•ืคื•ืœื™ืŸ ื”ืžื”ื•ื•ื” ืืช ืžืจื›ื– ื”ื›ืœื›ืœื”
42
  ```
43
 
44
+ ```python
45
  def ppl_naive(text, model, tokenizer):
46
  input = tokenizer.encode(text, return_tensors="pt")
47
  loss = model(input, labels=input)[0]