This commit is contained in:
2026-06-20 02:16:27 -06:00
parent c3b7156f80
commit 909abf71aa
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -4,3 +4,5 @@
3. Run `make_cover_briefs.lua`. (Relies on Ollama and `gemma4:12b-mlx` and requires at least a Mac mini M4 base model.) 3. Run `make_cover_briefs.lua`. (Relies on Ollama and `gemma4:12b-mlx` and requires at least a Mac mini M4 base model.)
4. Cover briefs will be placed in `cover_briefs`. 4. Cover briefs will be placed in `cover_briefs`.
5. A prompt ready to paste directly into Gemini will be in `for_gemini`. An extra border is prompted for to make cropping easy to remove the Gemini watermark. 5. A prompt ready to paste directly into Gemini will be in `for_gemini`. An extra border is prompted for to make cropping easy to remove the Gemini watermark.
If Gemini rejects the prompt, adding "Remove any elements that may go against guidelines before generating the image." to the opening paragraph can fix that issue.
+2 -2
View File
@@ -80,7 +80,7 @@ Avoid minor plot events.
local gemini_prompt = [[ local gemini_prompt = [[
Generate an ebook cover inset within an empty white border 10% larger than the cover using the following cover brief. It should be a flat graphic design file, with no artifacts of a physical object. Generate an ebook cover inset within an empty white border 10% larger than the cover using the following cover brief. It should be a flat graphic design file, with no artifacts of a physical object. The aspect ratio of an ebook is tall, not wide. The white border is very important. The title should only appear once on the cover.
]] ]]
@@ -196,7 +196,7 @@ tree("extracted_texts", function(file_name)
-- handle too much context (works with up to 100 slices) -- handle too much context (works with up to 100 slices)
if #outputs > 10 then if #outputs > 10 then
local context_slices = {} local context_slices = {}
while #outputs > 2 then while #outputs > 2 do
local output_slices = {} local output_slices = {}
for i = 1, 10 do for i = 1, 10 do
if #outputs >= 1 then if #outputs >= 1 then