Giter Site home page Giter Site logo

Not working without Modal about developer HOT 4 CLOSED

localjo avatar localjo commented on July 23, 2024
Not working without Modal

from developer.

Comments (4)

localjo avatar localjo commented on July 23, 2024

I got a little farther by adding file = None to the beginning of the block on line 235, changing line 125 to filepaths_string = generate_response( instead of filepaths_string = generate_response.call( and setting openai_model = "gpt-3.5-turbo". I also had to manually define my env vars (the .env file wasn't read).

Now, when I run the command it seems like the prompts are executed and something is generated, but it still crashes with the following error:

Traceback (most recent call last):
  File "/Users/dzso/Dev/smol-dev/main_no_modal.py", line 246, in <module>
    main(prompt, directory, file)
  File "/Users/dzso/Dev/smol-dev/main_no_modal.py", line 189, in main
    write_file(filename, filecode, directory)
  File "/Users/dzso/Dev/smol-dev/main_no_modal.py", line 207, in write_file
    file.write(filecode)
TypeError: write() argument must be str, not tuple

from developer.

gonzab avatar gonzab commented on July 23, 2024

Replacing line 207 with:
file.write(filecode[1])

makes it work

from developer.

thatliuser avatar thatliuser commented on July 23, 2024

I believe I've fixed these issues in PR #17, if you'd like to give it a shot!

from developer.

swyxio avatar swyxio commented on July 23, 2024

thanks to @thatliuser i think this is solved, pls reopen otherwise!

from developer.

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.