Beispiel #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())
    ]))
Beispiel #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)
Beispiel #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'))
Beispiel #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)]))
Beispiel #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([]))
Beispiel #6
0
def hello_world(args: 'Namespace'):
    from jina.helloworld import hello_world
    hello_world(args)
Beispiel #7
0
def hello_world_chatbot(args: 'Namespace'):
    from jina.helloworld.chatbot import hello_world
    hello_world(args)
Beispiel #8
0
def hello_world(args):
    from jina.helloworld import hello_world
    hello_world(args)