Fix pydantic IncEx import error

#32
No description provided.

Independent check of this PR's pin, since it has been open a while. The Space's current traceback ends at:

File ".../fastapi/types.py", line 7, in <module>
    from pydantic.main import IncEx as IncEx
ImportError: cannot import name 'IncEx' from 'pydantic.main'

I measured the boundary directly: from pydantic.main import IncEx fails on pydantic 2.0.3, 2.4.2 and 2.5.0, and succeeds on 2.9.2 — the name only exists in later 2.x releases. This PR pins pydantic==2.10.6, which does provide it (verified by import on that exact version), so the pin supplies the missing name and closes the failure at the frame where it occurs.

One scope note, so the record is honest: today's fastapi releases guard this import, and a modern resolver won't select the broken pair — the failing combination is the one this Space's own two-step build produces (the Dockerfile installs gradio==3.46.0 first, then requirements.txt, which until now pinned no pydantic at all). The pin in this PR removes the ambiguity regardless of which step resolves what.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment