You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package imageInference
-
- import "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/inference"
-
- const (
- IMAGETOTEXT = "image-to-text"
- IMAGETOTEXT_AiTYPE = "13"
- )
-
- type ImageToText struct {
- }
-
- func (it *ImageToText) AppendRoute(urls []*inference.InferUrl) error {
- for i, _ := range urls {
- urls[i].Url = urls[i].Url + inference.FORWARD_SLASH + IMAGETOTEXT
- }
- return nil
- }
-
- func (it *ImageToText) GetAiType() string {
- return IMAGETOTEXT_AiTYPE
- }
|