Git Product home page Git Product logo

Comments (7)

mshumer avatar mshumer commented on August 19, 2024 1

hmm, the next thing you can try is modifying epub.write_epub(f'{title}.epub', book) to specify the directory.

from gpt-author.

mshumer avatar mshumer commented on August 19, 2024

Are you using Colab? If so, open the filesystem in the sidebar and it should be there!

from gpt-author.

MartinAbilev avatar MartinAbilev commented on August 19, 2024

I'm running in vs code Jupyter locally

from gpt-author.

mshumer avatar mshumer commented on August 19, 2024

Ah, this might be the problem... so on Colab, typically, new files are stored in the content folder.

So adjust this part of the code:

for i, image in enumerate(data["artifacts"]):
      with open(f"/content/cover.png", "wb") as f: # replace this if running locally, to where you store the cover file
          f.write(base64.b64decode(image["base64"]))

and this part of the code:

create_epub(title, 'AI', chapter_titles, '/content/cover.png')

Change /content/cover.png to whatever makes sense for your filesystem.

from gpt-author.

MartinAbilev avatar MartinAbilev commented on August 19, 2024

I already disabled cover generation because it got already cover I want to put on.

from gpt-author.

MartinAbilev avatar MartinAbilev commented on August 19, 2024

ou yeah now it saves as needed thanks :)

from gpt-author.

AgimaFR avatar AgimaFR commented on August 19, 2024

@MartinAbilev If your problem is solved, don't forget to close the issue.

from gpt-author.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.