mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 09:46:30 +00:00
62623b7123
rewrite zmq to DEALER and ROUTER add GET_USER command to get CurrentUser from Python all auth is on the python side inference run and validate annotations on python
17 lines
400 B
Python
17 lines
400 B
Python
import main
|
|
from main import ParsedArguments
|
|
|
|
|
|
def start_server():
|
|
args = ParsedArguments('admin@azaion.com', 'Az@1on1000Odm$n', 'stage', True)
|
|
processor = main.CommandProcessor(args)
|
|
try:
|
|
processor.start()
|
|
except Exception as e:
|
|
processor.stop()
|
|
|
|
def on_annotation(self, cmd, annotation):
|
|
print('on_annotation hit!')
|
|
|
|
if __name__ == "__main__":
|
|
start_server() |