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.

imageToText.go 466 B

12345678910111213141516171819202122
  1. package imageInference
  2. import "gitlink.org.cn/JointCloud/pcm-coordinator/internal/scheduler/service/inference"
  3. const (
  4. IMAGETOTEXT = "image"
  5. IMAGETOTEXT_AiTYPE = "13"
  6. )
  7. type ImageToText struct {
  8. }
  9. func (it *ImageToText) AppendRoute(urls []*inference.InferUrl) error {
  10. for i, _ := range urls {
  11. urls[i].Url = urls[i].Url + inference.FORWARD_SLASH + IMAGETOTEXT
  12. }
  13. return nil
  14. }
  15. func (it *ImageToText) GetAiType() string {
  16. return IMAGETOTEXT_AiTYPE
  17. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.