mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-05 20:03:30 +01:00
Remove unused gettokenids
This commit is contained in:
parent
7434c9221b
commit
a28e553412
12
aiserver.py
12
aiserver.py
@ -301,12 +301,12 @@ def getModelSelection(modellist):
|
||||
#==================================================================#
|
||||
# Return all keys in tokenizer dictionary containing char
|
||||
#==================================================================#
|
||||
def gettokenids(char):
|
||||
keys = []
|
||||
for key in vocab_keys:
|
||||
if(key.find(char) != -1):
|
||||
keys.append(key)
|
||||
return keys
|
||||
#def gettokenids(char):
|
||||
# keys = []
|
||||
# for key in vocab_keys:
|
||||
# if(key.find(char) != -1):
|
||||
# keys.append(key)
|
||||
# return keys
|
||||
|
||||
#==================================================================#
|
||||
# Return Model Name
|
||||
|
Loading…
x
Reference in New Issue
Block a user