diff --git a/bingart/bingart.py b/bingart/bingart.py index cfb40b8..9660d60 100644 --- a/bingart/bingart.py +++ b/bingart/bingart.py @@ -39,7 +39,10 @@ def generate_images(self, query): except IndexError: raise AuthCookieError('Auth cookie failed!') - url = f'https://www.bing.com/images/create?{encoded_query}&rt=' + '4' if coins > 0 else '3' + '&FORM=GENCRE' + url = f'https://www.bing.com/images/create?{encoded_query}&rt=' + rt = '4' if coins > 0 else '3' + url += rt + url += '&FORM=GENCRE' with requests.Session() as session: session.headers = headers diff --git a/setup.py b/setup.py index 62cc0fe..78f513f 100644 --- a/setup.py +++ b/setup.py @@ -5,10 +5,10 @@ setup( name='bingart', - version='1.0.1', + version='1.0.2', author='Maehdakvan', author_email='visitanimation@google.com', - description='bingart is an unofficial 🤫 API wrapper for Bing Image Creator (based on DALL-E 3).', + description='bingart is an unofficial API wrapper for Bing Image Creator (based on DALL-E 3).', long_description=long_description, long_description_content_type='text/markdown', url='https://github.com/DedInc/bingart',