Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kye committed Oct 15, 2023
1 parent f5bd89f commit 4ea8378
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions dalle3/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,30 @@ class Dalle3:
Opens the Bing Image Creator (DALL-E 3) and adds a cookie
get_urls():
Extracts and returns image URLs from the website
Usage:
------
# Import the necessary module
import logging
from dalle3 import Dalle3
# Set up logging
logging.basicConfig(level=logging.INFO)
# Instantiate the Dalle3 class with your cookie value
dalle = Dalle3("")
# Open the website with your query
dalle.open_website(
"Fish hivemind swarm in light blue avatar anime in zen garden pond concept art anime art, happy fish, anime scenery"

Check failure on line 54 in dalle3/main.py

View workflow job for this annotation

GitHub Actions / ruff

Ruff (E501)

dalle3/main.py:54:89: E501 Line too long (124 > 88 characters)
)
# Get the image URLs
urls = dalle.get_urls()
# Download the images to your specified folder
dalle.download_images(urls, "images/")
"""

def __init__(self, cookie_value: str):
Expand Down

0 comments on commit 4ea8378

Please sign in to comment.