Skip to content

Commit

Permalink
Merge pull request #42 from modal-labs/charlesfrye/fix-fastapi
Browse files Browse the repository at this point in the history
install fastAPI in images
  • Loading branch information
charlesfrye authored Nov 15, 2024
2 parents 09c6a82 + ae956e5 commit f9b9204
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@

static_path = Path(__file__).with_name("frontend").resolve()


@app.function(
mounts=[modal.Mount.from_local_dir(static_path, remote_path="/assets")],
container_idle_timeout=600,
timeout=600,
allow_concurrent_inputs=100,
image=modal.Image.debian_slim(python_version="3.11").pip_install(
"fastapi==0.115.5"
),
)
@modal.asgi_app()
def web():
Expand Down
1 change: 1 addition & 0 deletions src/moshi.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
modal.Image.debian_slim(python_version="3.11")
.pip_install(
"moshi==0.1.0",
"fastapi==0.115.5",
"huggingface_hub==0.24.7",
"hf_transfer==0.1.8",
"sphn==0.1.4",
Expand Down

0 comments on commit f9b9204

Please sign in to comment.