Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Latest commit

 

History

History
105 lines (66 loc) · 1.58 KB

DOCUMENTATION.md

File metadata and controls

105 lines (66 loc) · 1.58 KB

BingImageCreator

debug

def debug(debug_file, text_var)

helper function for debug

ImageGen Objects

class ImageGen()

Image generation by Microsoft Bing

Arguments:

  • auth_cookie - str Optional Parameters:
  • debug_file - str
  • quiet - bool
  • all_cookies - List[Dict]

get_images

def get_images(prompt: str) -> list

Fetches image links from Bing

Arguments:

  • prompt - str

save_images

def save_images(links: list, output_dir: str, file_name: str = None) -> None

Saves images to output directory

Arguments:

  • links - list[str]
  • output_dir - str
  • file_name - str

ImageGenAsync Objects

class ImageGenAsync()

Image generation by Microsoft Bing

Arguments:

  • auth_cookie - str Optional Parameters:
  • debug_file - str
  • quiet - bool
  • all_cookies - list[dict]

get_images

async def get_images(prompt: str) -> list

Fetches image links from Bing

Arguments:

  • prompt - str

save_images

async def save_images(links: list,
                      output_dir: str,
                      file_name: str = None) -> None

Saves images to output directory