CLI book extraction #1
@@ -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
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user