@@ -328,7 +328,7 @@ import os
328328import zipfile
329329import requests
330330
331- models = models_bucket.allow(' write' )
331+ models = models_bucket.allow(' write' , ' read ' )
332332generate_audio = gen_audio_job.allow(' submit' )
333333download_audio_model = download_audio_model_topic.allow(" publish" )
334334
@@ -560,6 +560,7 @@ ENV HANDLER=${HANDLER}
560560
561561ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy PYTHONPATH=.
562562WORKDIR /app
563+ COPY uv.lock pyproject.toml /app/
563564RUN --mount=type=cache,target=/root/.cache/uv \
564565 --mount=type=bind,source=uv.lock,target=uv.lock \
565566 --mount=type=bind,source=pyproject.toml,target=pyproject.toml \
@@ -584,9 +585,10 @@ ENV NVIDIA_REQUIRE_CUDA="cuda>=8.0"
584585RUN apt-get update -y && \
585586 apt-get install -y software-properties-common && \
586587 add-apt-repository ppa:deadsnakes/ppa && \
587- apt-get update -y && \
588588 apt-get install -y python3.11 && \
589- ln -sf /usr/bin/python3.11 /usr/local/bin/python3.11
589+ ln -sf /usr/bin/python3.11 /usr/local/bin/python3.11 && \
590+ ln -sf /usr/bin/python3.11 /usr/local/bin/python3 && \
591+ ln -sf /usr/bin/python3.11 /usr/local/bin/python
590592
591593# Copy the application from the builder
592594COPY --from=builder --chown=app:app /app /app
@@ -712,7 +714,7 @@ If you want to use a GPU you'll need to request a quota increase for G instances
712714To request a quota increase for G instances in AWS you can follow these steps :
713715
7147161. Go to the [AWS Service Quotas for EC2](https://console.aws.amazon.com/servicequotas/home/services/ec2/quotas) page.
715- 2. Find/Search for **All G and VT Spot Instance Requests **
717+ 2. Find/Search for **Running On-Demand G and VT instances **
7167183. Click **Request quota increase**
7177194. Choose an appropriate value, e.g. 4, 8 or 16 depending on your needs
718720
0 commit comments