// NewImageModelClient creates a new gRPC client
NewImageModelClient creates a new gRPC client
// NewImageModelClient creates a new gRPC client
func NewImageModelClient(addr string, port int) (uc.Image, error) {
	servingAddress := addr + ":" + strconv.Itoa(port)
	log.Println(servingAddress)
	conn, err := grpc.Dial(servingAddress, grpc.WithInsecure())
	if err != nil {
		log.Fatalf("Cannot connect to the grpc server: %v\n", err)
	}
	client := pb.NewPredictionServiceClient(conn)
	return &ImageModel{client: client}, nil
}
func NewImageModelClient ( addr string , port int ) ( uc . Image , error ) { servingAddress := addr + " " + strconv . Itoa ( port ) log . Println ( servingAddress ) conn , err := grpc . Dial ( servingAddress , grpc . WithInsecure ( ) ) if err != nil { log . Fatalf ( " \n " , err ) } client := pb . NewPredictionServiceClient ( conn ) return & ImageModel { client : client } , nil }
NewImageModelClient creates a new gRPC client
NewImageModelClient creates a new gRPC client