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