Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
doc: fix default method as all downloader
Browse files Browse the repository at this point in the history
  • Loading branch information
dsdanielpark authored Mar 9, 2024
1 parent f0cd4f5 commit f0246b1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ response = GeminiClient.generate_content(prompt)

generated_images = response.generated_images # Check generated images [Dict]

for image in generated_images:
GeminiImage.save_sync(path="cached_folder")
GeminiImage.save_sync(generated_images, save_path="cached_folder")

# You can use byte type image dict as follow:
# bytes_images_dict = GeminiImage.fetch_bytes_sync(generated_images) # Get bytes images dict
Expand Down Expand Up @@ -214,8 +213,7 @@ response = GeminiClient.generate_content(prompt)

response_images = response.web_images # Check response images [Dict]

for image in generated_images:
GeminiImage.save_sync(path="cached_folder")
GeminiImage.save_sync(response_images, save_path="cached_folder")

# You can use byte type image dict as follow:
# bytes_images_dict = GeminiImage.fetch_bytes_sync(response_images) # Get bytes images dict
Expand Down

0 comments on commit f0246b1

Please sign in to comment.