Ejemplo n.º 1
0
def test_helloworld_py_multimodal(tmpdir):
    from jina.helloworld.multimodal import hello_world
    hello_world(set_hw_multimodal_parser().parse_args([
        '--workdir',
        str(tmpdir), '--unblock-query-flow', '--port-expose',
        str(random_port())
    ]))
Ejemplo n.º 2
0
def hello(args: 'Namespace'):
    if args.hello == 'fashion':
        from jina.helloworld import hello_world
    elif args.hello == 'chatbot':
        from jina.helloworld.chatbot import hello_world
    elif args.hello == 'multimodal':
        from jina.helloworld.multimodal import hello_world
    else:
        raise ValueError(
            f'must be one of [`fashion`, `chatbot`, `multimodal`]')

    hello_world(args)
Ejemplo n.º 3
0
def test_helloworld_py(tmpdir):
    from jina.helloworld import hello_world
    hello_world(set_hw_parser().parse_args(['--workdir', str(tmpdir)]))
    check_hello_world_results(os.path.join(str(tmpdir), 'hello-world.html'))
Ejemplo n.º 4
0
def test_helloworld_py(tmpdir):
    from jina.parser import set_hw_parser
    from jina.helloworld import hello_world
    hello_world(set_hw_parser().parse_args(['--workdir', str(tmpdir)]))
Ejemplo n.º 5
0
 def test_helloworld_py(self):
     from jina.main.parser import set_hw_parser
     from jina.helloworld import hello_world
     hello_world(set_hw_parser().parse_args([]))
Ejemplo n.º 6
0
def hello_world(args: 'Namespace'):
    from jina.helloworld import hello_world
    hello_world(args)
Ejemplo n.º 7
0
Archivo: api.py Proyecto: smarthi/jina
def hello_world_chatbot(args: 'Namespace'):
    from jina.helloworld.chatbot import hello_world
    hello_world(args)
Ejemplo n.º 8
0
def hello_world(args):
    from jina.helloworld import hello_world
    hello_world(args)