File tree 3 files changed +4
-2
lines changed
3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ def test_image_captioning_model_get_captions(self):
59
59
def test_image_q_and_a_model_ask_question (self ):
60
60
aiplatform .init (project = e2e_base ._PROJECT , location = e2e_base ._LOCATION )
61
61
62
- model = vision_models .ImageQnAModel .from_pretrained ("imagetext" )
62
+ model = ga_vision_models .ImageQnAModel .from_pretrained ("imagetext" )
63
63
image = _create_blank_image ()
64
64
answers = model .ask_question (
65
65
image = image ,
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ def test_get_captions(self):
153
153
_IMAGE_TEXT_PUBLISHER_MODEL_DICT
154
154
),
155
155
) as mock_get_publisher_model :
156
- model = vision_models .ImageQnAModel .from_pretrained ("imagetext@001" )
156
+ model = ga_vision_models .ImageQnAModel .from_pretrained ("imagetext@001" )
157
157
158
158
mock_get_publisher_model .assert_called_once_with (
159
159
name = "publishers/google/models/imagetext@001" ,
Original file line number Diff line number Diff line change 17
17
from vertexai .vision_models ._vision_models import (
18
18
Image ,
19
19
ImageCaptioningModel ,
20
+ ImageQnAModel ,
20
21
)
21
22
22
23
__all__ = [
23
24
"Image" ,
24
25
"ImageCaptioningModel" ,
26
+ "ImageQnAModel" ,
25
27
]
You can’t perform that action at this time.
0 commit comments