It currently writes a file to disk if there's a single output, but outputs plain JSON if there are multiple files. We should instead write those files to disk using a sensible naming scheme. Migrated from a todo in https://github.com/replicate/cog/pull/378. Proposal for how to handle this here: https://github.com/replicate/cog/pull/328 edited by @zeke