Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBigModelService ¶
Types ¶
type CloudConfig ¶
type Config ¶
type Config struct { OBS OBSConfig `json:"obs" required:"true"` Cloud CloudConfig `json:"cloud" required:"true"` WuKong WuKong `json:"wukong" required:"true"` Endpoints Endpoints `json:"endpoints" required:"true"` Moderation Moderation `json:"moderation" required:"true"` MaxPictureSizeToDescribe int64 `json:"max_picture_size_to_describe"` MaxPictureSizeToVQA int64 `json:"max_picture_size_to_vqa"` }
func (*Config) SetDefault ¶
func (cfg *Config) SetDefault()
type Endpoints ¶
type Endpoints struct { VQA string `json:"vqa" required:"true"` Pangu string `json:"pangu" required:"true"` LuoJia string `json:"luojia" required:"true"` WuKong string `json:"wukong" required:"true"` CodeGeex string `json:"codegeex" required:"true"` DescPicture string `json:"desc_picture" required:"true"` SinglePicture string `json:"single_picture" required:"true"` MultiplePictures string `json:"multiple_pictures" required:"true"` }
type Moderation ¶
type OBSAuthInfo ¶
type OBSConfig ¶
type OBSConfig struct { OBSAuthInfo VQABucket string `json:"vqa_bucket" required:"true"` LuoJiaBucket string `json:"luo_jia_bucket" required:"true"` }
type WuKong ¶
type WuKong struct { WuKongSample CloudConfig OBSAuthInfo Bucket string `json:"bucket" required:"true"` // DownloadExpiry specifies the timeout to download a obs file. // The unit is second. DownloadExpiry int `json:"download_expiry"` }
type WuKongSample ¶
Click to show internal directories.
Click to hide internal directories.