l_bert/entity.go

20 lines
440 B
Go

package l_bert
import "encoding/json"
type PredictRes struct {
Metadata struct {
Device string `json:"device"`
Timestamp string `json:"timestamp"`
} `json:"metadata"`
Model string `json:"model"`
Prediction json.RawMessage `json:"prediction"`
Status string `json:"status"`
Error string `json:"error"`
}
type Predict struct {
Model string `json:"model"`
Text string `json:"text"`
}