GithubHelp home page GithubHelp logo

vra / bing_brush Goto Github PK

View Code? Open in Web Editor NEW
7.0 4.0 2.0 4.23 MB

One-line Image Generating Program Based on the Bing Image Createor (Powered by DALL·E 3), `pip install bing_brush`, that's it!

Home Page: https://bing-brush.vercel.app

Python 100.00%
ai aigc bing bingimage-generator click dalle-3 dalle3 microsoft openai pip

bing_brush's Introduction

👋 Hi, I'm Yunfeng Wang

Journey

  • 👨‍💻 2020.06-now work@Alibaba
  • 👨‍💻 2018.06-2020.06 work@MegVii
  • 👨‍🎓 2011.08-2018.06 study@USTC

Interests

Contacts

  • 📨 Email me wyf.brz[#]gmail.com
  • 👋 Follow me at GitHub and 知乎
  • 📮 RSS my blog posts

bing_brush's People

Contributors

allfatherai avatar vra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bing_brush's Issues

当点数用完之后,就会出错.(when the credits are used up, there is a problem)

当点数用完之后,我发现返回的response里面没有response.headers["Location"]这一项了,导致报错。具体问题出现在bing_brush.py,line83: redirect_url = response.headers["Location"].replace("&nfy=1", "").

我感觉问题在于,当使用点数的时候,在点击创建image之后,会出现进度条,此时并没有切断session连接.而当点数用完之后,不会出现进度条,此时也许session连接已经被切断了,所有response里面并没有location这一项.

"Error Occurs"

I am currently getting this error when trying to use Bing Brush. I have Debug logging on but not many details.

2024-01-26 18:12:30,252 - urllib3.connectionpool - DEBUG - Starting new HTTPS connection (1): www.bing.com:443
2024-01-26 18:12:30,538 - urllib3.connectionpool - DEBUG - https://www.bing.com:443 "POST /images/create?q=realistic%20Barney%20the%20Dinosaur%20Scuba%20Diving%20in%20a%20barrier%20reef%0A&rt=4&FORM=GENCRE HTTP/1.1" 200 129189
==> Generating...
==> Your boosts have run out, using the slow generating pipeline, please wait...
2024-01-26 18:12:30,725 - urllib3.connectionpool - DEBUG - https://www.bing.com:443 "POST /images/create?q=realistic%20Barney%20the%20Dinosaur%20Scuba%20Diving%20in%20a%20barrier%20reef%0A&rt=3&FORM=GENCRE HTTP/1.1" 200 129145
==> Error occurs, please submit an issue at https://github.com/vra/bing_brush, I will fix it as soon as possible.

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.