Skip to content

Commit

Permalink
resolve incompatibility issue between Gradio and Pydantic (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesfrye authored Dec 4, 2024
1 parent aeb71ab commit 8509682
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions 10_integrations/cloud_bucket_mount_loras.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
# the container `Image`. The line below constructs an image
# with the dependencies we need -- no need to install them locally.

image = modal.Image.debian_slim().pip_install(
image = modal.Image.debian_slim(python_version="3.12").pip_install(
"huggingface_hub==0.21.4",
"transformers==4.38.2",
"diffusers==0.26.3",
Expand Down Expand Up @@ -238,8 +238,10 @@ def main(
# To set up your own, run `modal deploy cloud_bucket_mount_loras.py` and navigate to the URL it prints out.
# If you're playing with the code, use `modal serve` instead to see changes live.

web_image = modal.Image.debian_slim().pip_install(
"fastapi[standard]==0.115.4", "gradio~=4.29.0", "pillow~=10.2.0"
web_image = modal.Image.debian_slim(python_version="3.12").pip_install(
"fastapi[standard]==0.115.4",
"gradio~=5.7.1",
"pillow~=10.2.0",
)


Expand Down

0 comments on commit 8509682

Please sign in to comment.