GithubHelp home page GithubHelp logo

Comments (6)

juanma1331 avatar juanma1331 commented on May 22, 2024 1

Ok I made it work with this changes.

if "import sys" not in code:
        code = "import sys\nsys.stdout.reconfigure(encoding='utf-8')\n" + code

        tmp = tempfile.NamedTemporaryFile(
            "w", suffix=".py", delete=False, encoding="utf-8"
        )```
.Thanks will check!!

from demogpt.

juanma1331 avatar juanma1331 commented on May 22, 2024 1

It didn't work, unfortunately. I'll try the PR when I have some free time (I have kids, so it can get a little hectic, hehe). Although it will be my first PR, so it's going to be a learning experience!

from demogpt.

melih-unsal avatar melih-unsal commented on May 22, 2024

Hey @juanma1331 ,

Thank you for your detailed report and for bringing this issue to our attention. We sincerely apologize for any inconvenience caused. It appears that the issue was related to the lack of handling Unicode during temporary file writing in the Windows operating system, as you rightly pointed out.

I'm glad to inform you that we've pushed a new update to the repository that should resolve the issue. You should now be able to run the Streamlit app without encountering this problem.

Please update your local copy of the repository and retry running the Streamlit app. If you encounter any further issues, don't hesitate to report them. Your feedback is highly appreciated and helps us improve the overall user experience.

Thank you for your support and contribution to DemoGPT. 🙏

Best,
Melih

from demogpt.

juanma1331 avatar juanma1331 commented on May 22, 2024

I cloned again and tried the example but it keeps erroring. return codecs.charmap_encode(input,self.errors,encoding_table)[0]. I checked committed changes and it should work with the new changes, but dont know why it's still there.

from demogpt.

melih-unsal avatar melih-unsal commented on May 22, 2024

Hey @juanma1331 ,thank you again for reporting. 🙏
I'm also surprised but I worked on it and it should be okay now.
I hope this new update resolves the issue.

Best,
Melih

from demogpt.

melih-unsal avatar melih-unsal commented on May 22, 2024

I liked the way you used!

I hope the new update also solves the issue, otherwise, you can also make a PR.

from demogpt.

Related Issues (15)

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.