Bklieger / infinite-bookshelf

Infinite Bookshelf: Generate entire books in seconds using Groq and Llama3
https://infinite.benjamin.sh
MIT License
1.15k stars 257 forks source link

Update main.py #19

Closed oceanuo closed 4 months ago

oceanuo commented 4 months ago

After downloading, the file name will be generated by AI (book title)

Bklieger commented 4 months ago

Code required two minor changes:

"self.title" could conflict with variable title used later in code, so it was changed to "self.book_title" for clarity.

Book title should only be added to the markdown content when the level = 1, since the function is recursive. Otherwise, duplicate book titles appear.


This feature is useful. It is now fully functional and will be merged.