Skip to content

Commit bd84220

Browse files
committed
added comments
1 parent 7be0776 commit bd84220

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tokens.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from utils import *
2+
#user-defined function to convert length of a code file into tokens
23
def tokencount(content):
34
encoding=tiktoken.get_encoding("cl100k_base")
45
token_num=len(encoding.encode(content))

0 commit comments

Comments
 (0)