gradio
7aec6bd4 - fix: add Starlette 1.0 compatibility (#13159)

Commit
18 days ago
fix: add Starlette 1.0 compatibility (#13159) * fix: add Starlette 1.0 compatibility Relax the starlette version constraint from <1.0 to <2.0 to allow installation alongside Starlette 1.0.0+. Starlette 1.0 removed some deprecated APIs (on_startup/on_shutdown parameters, decorator-style routing on Starlette/Router) but gradio uses these through FastAPI which still supports them. The starlette imports gradio uses directly (GZipResponder, guess_type, MultiPartException, MultipartPart, etc.) remain available in Starlette 1.0. Closes #13130 * Update Starlette compatibility to minor version --------- Co-authored-by: Freddy Boulton <41651716+freddyaboulton@users.noreply.github.com>
Author
Parents
Loading