Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolve incompatibility issue between Gradio and Pydantic #1002

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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