示例#1
0
def test_vector_name_same_name(test_client):
    text_encoder = ViText2Vec(os.environ['VI_USERNAME'],
                              os.environ['VI_API_KEY'])
    with pytest.raises(ValueError):
        vector_name = test_client._check_if_multiple_models_have_same_name(
            models={'color': [text_encoder, text_encoder]})
示例#2
0
def test_text_encoder():
    """
        Text Encoder
    """
    model = ViText2Vec(os.environ['VI_USERNAME'], os.environ['VI_API_KEY'])
    return model