rewrite inference and file loading to cython

Step 1: can compile
This commit is contained in:
Alex Bezdieniezhnykh
2025-01-15 16:43:56 +02:00
parent 1bc1d81fde
commit fb11622c32
12 changed files with 619 additions and 1 deletions
+17
View File
@@ -0,0 +1,17 @@
# cython: language_level=3
cdef str SOCKET_HOST = "127.0.0.1" # Host for the socket server
cdef int SOCKET_PORT = 9127 # Port for the socket server
cdef int SOCKET_BUFFER_SIZE = 4096 # Buffer size for socket communication
cdef int QUEUE_MAXSIZE = 1000 # Maximum size of the command queue
cdef str COMMANDS_QUEUE = "azaion-commands"
cdef str ANNOTATIONS_QUEUE = "azaion-annotations"
cdef str API_URL = "https://api.azaion.com" # Base URL for the external API
cdef str TOKEN_FILE = "token"
cdef str QUEUE_CONFIG_FILENAME = "secured-config.json"
cdef str AI_MODEL_FILE = "azaion.pt"