diff options
author | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-01-13 15:56:29 +0100 |
---|---|---|
committer | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-01-13 15:56:29 +0100 |
commit | 7968ae52fb3d5540464f6fdf29350aa0dfe7e955 (patch) | |
tree | bb6bf7350a4cb7c1a8b14430d8b1168b32ae197d /g4f/Provider/bing/upload_image.py | |
parent | Merge pull request #1461 from Akash98Sky/main (diff) | |
download | gpt4free-7968ae52fb3d5540464f6fdf29350aa0dfe7e955.tar gpt4free-7968ae52fb3d5540464f6fdf29350aa0dfe7e955.tar.gz gpt4free-7968ae52fb3d5540464f6fdf29350aa0dfe7e955.tar.bz2 gpt4free-7968ae52fb3d5540464f6fdf29350aa0dfe7e955.tar.lz gpt4free-7968ae52fb3d5540464f6fdf29350aa0dfe7e955.tar.xz gpt4free-7968ae52fb3d5540464f6fdf29350aa0dfe7e955.tar.zst gpt4free-7968ae52fb3d5540464f6fdf29350aa0dfe7e955.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/Provider/bing/upload_image.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/g4f/Provider/bing/upload_image.py b/g4f/Provider/bing/upload_image.py index 041905fd..d92451fa 100644 --- a/g4f/Provider/bing/upload_image.py +++ b/g4f/Provider/bing/upload_image.py @@ -3,17 +3,14 @@ from __future__ import annotations import string import random import json -import io -import base64 import math -from PIL import Image from ...typing import ImageType from aiohttp import ClientSession from ...image import to_image, process_image, to_base64 image_config = { "maxImagePixels": 360000, - "imageComp.ssionRate": 0.7, + "imageCompressionRate": 0.7, "enableFaceBlurDebug": 0, } |