CLI book extraction #1

Merged
tangent merged 12 commits from cli-book-extraction into main 2026-08-16 19:21:54 -06:00
2 changed files with 9 additions and 1 deletions
Showing only changes of commit d8157ca675 - Show all commits
+8
View File
@@ -30,3 +30,11 @@ removal after the initial image is generated.
The local model sometimes completely forgets critical details of characters, The local model sometimes completely forgets critical details of characters,
so it's important you have some familiarity with the work before running the generator so it's important you have some familiarity with the work before running the generator
to check accuracy. to check accuracy.
## Tasks
- [ ] Add timestamps to when a prompt is sent.
- [ ] Specify ETA when sending a prompt (1.5-8 minutes depending on length). (Show as end time as well as relative time.)
- [ ] option to delete input files or intermediate files at end of each operation step
- [ ] make script resumable instead of having to restart per book
- [ ] instead of placeholder directories, `mkdir -p` should be used to only make them when necessary
- [ ] dry run to estimate total time before running full script, print starting ETA
+1 -1
View File
@@ -217,7 +217,7 @@ tree("extracted_texts", function(file_name)
print("Generating cover brief.") print("Generating cover brief.")
result = send_prompt(cover_brief_prompt .. text) result = send_prompt(cover_brief_prompt .. text)
write_all("cover_briefs/" .. name, result) write_all("cover_briefs/" .. name, result)
write_all("for_gemini/" .. name, name:sub(1, -5) .. gemini_prompt .. result) write_all("for_gemini/" .. name, "Title: " .. name:sub(1, -5) .. gemini_prompt .. result)
end) end)
timing_report() timing_report()