a lot of small stuff

This commit is contained in:
2019-12-07 19:56:23 -08:00
parent 997d3a7618
commit 5abe7bb413
4 changed files with 35 additions and 6 deletions

View File

@@ -7,6 +7,7 @@ from libc.stdlib cimport malloc, realloc
from libc.string cimport memcpy
import library as nn
import flask
tokenizers = {}
@@ -44,6 +45,10 @@ cdef public char *greeting():
return f'The value is {3**3**3}'.encode('utf-8')
cdef public void serve():
nn.app.run(port=8448)
cdef public int get_tokens(WordList* wl, const char *filename):
fnu = filename.decode('utf-8')
if fnu not in tokenizers: