Skip to content

Commit

Permalink
delete image-to-video result file
Browse files Browse the repository at this point in the history
  • Loading branch information
ad-astra-video committed Sep 10, 2024
1 parent 08c82c3 commit 6854eae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/ai_worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ func runAIJob(n *core.LivepeerNode, orchAddr string, httpc *http.Client, notify
//transcoded result is saved as local file TODO: enhance this to return the []bytes from transcoding in n.ImageToVideo
//create the part
f, err := os.ReadFile(image.Url)
defer os.Remove(image.Url)
imgResp.Images[i].Url = fmt.Sprintf("%v.mp4", core.RandomManifestID())
if err != nil {
clog.Errorf(ctx, "Could not create multipart part err=%q", err)
Expand Down

0 comments on commit 6854eae

Please sign in to comment.