@@ -328,7 +328,7 @@ import os
328
328
import zipfile
329
329
import requests
330
330
331
- models = models_bucket.allow(' write' )
331
+ models = models_bucket.allow(' write' , ' read ' )
332
332
generate_audio = gen_audio_job.allow(' submit' )
333
333
download_audio_model = download_audio_model_topic.allow(" publish" )
334
334
@@ -560,6 +560,7 @@ ENV HANDLER=${HANDLER}
560
560
561
561
ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy PYTHONPATH=.
562
562
WORKDIR /app
563
+ COPY uv.lock pyproject.toml /app/
563
564
RUN --mount=type=cache,target=/root/.cache/uv \
564
565
--mount=type=bind,source=uv.lock,target=uv.lock \
565
566
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
@@ -584,9 +585,10 @@ ENV NVIDIA_REQUIRE_CUDA="cuda>=8.0"
584
585
RUN apt-get update -y && \
585
586
apt-get install -y software-properties-common && \
586
587
add-apt-repository ppa:deadsnakes/ppa && \
587
- apt-get update -y && \
588
588
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
590
592
591
593
# Copy the application from the builder
592
594
COPY --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
712
714
To request a quota increase for G instances in AWS you can follow these steps :
713
715
714
716
1. 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 **
716
718
3. Click **Request quota increase**
717
719
4. Choose an appropriate value, e.g. 4, 8 or 16 depending on your needs
718
720
0 commit comments