fal-ai / fal

⚡ Fastest way to serve open source ML models to millions
https://fal.ai/docs
Apache License 2.0
549 stars 49 forks source link

fix(image-toolkit): request class conflict #346

Closed badayvedat closed 2 weeks ago

badayvedat commented 2 weeks ago

fixes conflicts between two distinct Request classes.

from urllib.request import Request, urlopen # this one has  a Request from urllib

from .image import *  # noqa: F403 # this one has a Request from fastapi

....

# and now this is using request from fastapi, not urllib
request = Request(url, headers=TEMP_HEADERS)