Simplify stage and Audita contracts
This commit is contained in:
@@ -19,17 +19,6 @@ type transcribeStage struct{}
|
||||
|
||||
func (transcribeStage) Name() string { return "transcribe" }
|
||||
|
||||
func (transcribeStage) Declares() IODecl {
|
||||
return IODecl{
|
||||
Inputs: []artifacts.Ref{
|
||||
{Kind: "audio", Category: "audio", RelativePath: "audio/*.flac"},
|
||||
},
|
||||
Outputs: []artifacts.Ref{
|
||||
{Kind: "transcript_raw", Category: "transcripts", RelativePath: "transcripts/raw/*.json"},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
func (transcribeStage) Run(ctx context.Context, env *Env, m *manifest.Manifest) (*StageResult, error) {
|
||||
if env == nil || env.Config == nil {
|
||||
return nil, fmt.Errorf("transcribe: stage environment config is required")
|
||||
|
||||
Reference in New Issue
Block a user