diff --git a/07_web_endpoints/fasthtml-checkboxes/fasthtml_checkboxes.py b/07_web_endpoints/fasthtml-checkboxes/fasthtml_checkboxes.py index ed1d8c8cb..89ca4d27e 100644 --- a/07_web_endpoints/fasthtml-checkboxes/fasthtml_checkboxes.py +++ b/07_web_endpoints/fasthtml-checkboxes/fasthtml_checkboxes.py @@ -19,7 +19,7 @@ import time from asyncio import Lock -from pathlib import Path, PosixPath +from pathlib import Path from uuid import uuid4 import modal @@ -34,9 +34,9 @@ @app.function( - image=modal.Image.debian_slim(python_version="3.12").pip_install( - "python-fasthtml==0.6.9", "inflect~=7.4.0" - ).add_local_file(css_path_local, remote_path=css_path_remote), + image=modal.Image.debian_slim(python_version="3.12") + .pip_install("python-fasthtml==0.6.9", "inflect~=7.4.0") + .add_local_file(css_path_local, remote_path=css_path_remote), concurrency_limit=1, # we currently maintain state in memory, so we restrict the server to one worker allow_concurrent_inputs=1000, )