cog
Refactor `cog predict` to support `--json` flag
#2404
Merged

Refactor `cog predict` to support `--json` flag #2404

8W9aG merged 24 commits into main from cog-predict-json
aron
aron Implement `cog predict --json`
6f736350
aron Support writing output file to disk
e2d73bda
aron Refactor to use same path for output processing
73312b7b
aron Cleanup `--output` flag
44dd87db
aron Rename write methods
8b07a272
aron Always transform outputs
88699cac
aron Clean up display of outputs in cog predict
bcd96ab1
aron Preserve file extensions on `list[Path]` outputs
01fda9b5
aron Only transform outputs if the prediction was successful
aad93575
aron Exit from `cog predict` with non-zero exit code if prediction fails
0107896c
michaeldwan
michaeldwan approved these changes on 2025-06-11
8W9aG
8W9aG approved these changes on 2025-06-11
aron
aron DEBUG
8bd3c66d
aron DEBUG
1bf7fb11
8W9aG Fix adding double file extension
699ef920
8W9aG Fix checking if the extension is an integer
b476e3cb
8W9aG Add test_predict_json_input integration test
95cf21a6
8W9aG Add more integration tests
c15c4aed
8W9aG Support - for stdin input
fc780ced
8W9aG Merge branch 'main' into cog-predict-json
050786a0
8W9aG Use %q for output name format
b29b967d
8W9aG Send error if prediction status fails
69866099
8W9aG Fix flaky file challenge test
db14789b
8W9aG Fix integration tests
ab144da9
8W9aG Remove newline
b7270ce9
8W9aG Just test output file in output mode
dae8efa2
8W9aG 8W9aG merged 0a493200 into main 276 days ago
8W9aG 8W9aG deleted the cog-predict-json branch 276 days ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone