Skip to content

Commit

Permalink
Update You.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hlohaus authored Apr 7, 2024
1 parent 70e942a commit 536e859
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions g4f/Provider/You.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import base64
import uuid
try:
from ..requests.curl_cffi import FormData
from ..requests import FormData
has_curl_cffi = True
except ImportError:
has_curl_cffi = False
Expand Down Expand Up @@ -55,8 +55,8 @@ async def create_async_generator(
chat_mode: str = "default",
**kwargs,
) -> AsyncResult:
if not has_curl_cffi:
raise MissingRequirementsError('Install or update "curl_cffi" package | pip install -U curl_cffi')
#if not has_curl_cffi:
# raise MissingRequirementsError('Install or update "curl_cffi" package | pip install -U curl_cffi')
if image is not None:
chat_mode = "agent"
elif not model or model == cls.default_model:
Expand Down

0 comments on commit 536e859

Please sign in to comment.