def main(): loop = asyncio.get_event_loop() aio_scheduler = AsyncIOScheduler(loop=loop) run( Component(call=functools.partial(model_publisher, aio_scheduler), input=ModelPublisherSource), ModelPublisherDrivers( kafka=kafka.make_driver(), http=http.make_driver(), file=file.make_driver(), argv=argv.make_driver(), ))
def main(): loop = asyncio.get_event_loop() # loop.set_debug(True) aio_scheduler = AsyncIOScheduler(loop=loop) run( Component(call=partial(deepspeech_server, aio_scheduler), input=DeepspeechSource), DeepspeechDrivers(deepspeech=deepspeech.make_driver(), httpd=httpd.make_driver(), argv=argv.make_driver(), logging=logging.make_driver(), file=file.make_driver()), loop=loop, )
def main(): loop = asyncio.get_event_loop() # loop.set_debug(True) aio_scheduler = AsyncIOScheduler(loop=loop) run( Component( call=partial(makinage, aio_scheduler), input=MakiNageSource), MakiNageDrivers( kafka=kafka.make_driver(), http=http.make_driver(), file=file.make_driver(), argv=argv.make_driver(), ), loop=loop, )
def main(): dispose = run(entry_point=Component(call=audio_encoder, input=Source), drivers=Drivers( encoder=encoder.make_driver(), httpd=httpd.make_driver(), file=file.make_driver(), argv=argv.make_driver(), )) dispose()
def main(): dispose = run( entry_point=Component(call=rmux_client, input=Source), drivers=Drivers( tcp_client=tcp_client.make_driver(), stdout=stdout.make_driver(), ) ) dispose()
def main(): run(Component(call=read_key, input=ReadKeySource), ReadKeyDrivers( http=http.make_driver(), stdout=stdout.make_driver(), ))
def main(): run(Component(call=echo_server, input=EchoSource), EchoDrivers(httpd=httpd.make_driver()))
def main(): dispose = run(entry_point=Component(call=rmux_server, input=Source), drivers=Drivers(tcp_server=tcp_server.make_driver(), )) dispose()