PydanticSchemaGenerationError
pydantic.errors.PydanticSchemaGenerationError: Unable to generate pydantic-core schema for <class 'starlette.requests.Request'>. Set arbitrary_types_allowed=True in the model_config to ignore this error or implement __get_pydantic_core_schema__ on your type to fully support it.
If you got this error by calling handler(__get_pydantic_core_schema__ then you likely need to call handler.generate_schema(<some type>) since we do not call __get_pydantic_core_schema__ on <some type> otherwise to avoid infinite recursion.
When I am running the gradio_app_sdxl_specific_id_low_vram.py, the above error is raised.
You'll need to upgrade Gradio to a newer version.
I upgraded to version 4.44 and everything seems to work fine.
pip install gradio==4.44
Is this still the case? When I try installing gradio 4.44 and gradio_client 1.3.0, I run into an error
venv\lib\site-packages\gradio_client\utils.py", line 863, in get_type
if "const" in schema:
TypeError: argument of type 'bool' is not iterable
I am attempting to run the gradio_app_sdxl_specific_id_low_vram.py file if that makes any difference
Edit I was able to finally run this file/project. It seems worth noting that both machines that I tested this on were windows machines. Starting from a base project (assuming you pip install the requirements.txt file), I changed these packages in this order: pip install huggingface-hub==0.23.0 pip install gradio==4.44.0 pip install pydantic==2.8.2 pip install gradio_client==1.3.0 pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 xformers --index-url https://download.pytorch.org/whl/cu121 --upgrade
Is this still the case? When I try installing gradio 4.44 and gradio_client 1.3.0, I run into an error
I haven't tried since, then, but it's worth noting that I was using Linux.
Also, as you've mentioned, using a default requirements.txt for a pip install can sometimes result in clashes of packages, which can be a pain to sort out.
It's awesome that you included your modified requirements.txt, as I can guarantee that will help someone out in the future. :-)