Open Tremeschin opened 2 weeks ago
same
I know it's been two weeks, but I'm very close to a 0.7 release after fixing some technical debt (+lots of improvements). I'll overhaul the webui to something useful and write the remaining examples
doc page, test and push a 0.7 release !
In case people from FastAPI reads here, v0.114.2 doesn't fix it for older versions of Gradio, my releases are broken
TLDR; It's an regression with upstream fastapi, wait for an upstream fastapi fix or v0.7.0 on my end
✅ Workaround for PyPI Releases: Downgrade FastAPI
pip install -U fastapi==0.112.4
✅ Workaround for Binary Releases:
./depthflow-cpu-linux-amd64-latest.bin self pip install fastapi==0.112.4
✅ It's already fixed when running from source, related commit: https://github.com/BrokenSource/BrokenSource/commit/85e172bae5237328c818db47b7428db3c5c9a50b
Explanation
The versions of DepthFlow v0.6.0 asks for gradio==4.22 ('
==
' as they change it so much), but let it specify a FastAPI version as it wishes; Gradio simply asks for'fastapi'
dependency (open as a zip and go to/gradio-4.22.0.dist-info/METADATA
) and it'll download latest one (0.144.2 at the time)However, recent versions of it, more specifically later versions of v0.112.4 (release Sep 5) introduced a regression https://github.com/fastapi/fastapi/issues/12133 and apparently broke Path inputs on Gradio apps
Sidenote: I'll pin to "equals" versions of fastapi and other deps in the future, at least for binary releases, to avoid this