Skip to content

Commit

Permalink
build: fix pydantic version due to bug
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnacioHeredia committed Nov 12, 2024
1 parent 83eced7 commit edc558b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
click>=7.1.2
requests>=2.25.1
gradio==4.37.2
click >= 7.1.2 # dont fix upper version because conflict with typer installed by gradio
requests >= 2.25.1, < 3.0
gradio == 4.37.2
pydantic == 2.7.1
# Pydantic is installed by Gradio (pydantic>=2.0)
# it seems that newer versions of Pydantic (2.9.2) throws errors [1] with some modules (eg. corals)
# So we fix the version till we have more time to debug+update
# [1]: 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.

0 comments on commit edc558b

Please sign in to comment.