Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
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
10 changes: 6 additions & 4 deletions docs/guides/python/ai-podcast-part-1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ import os
import zipfile
import requests

models = models_bucket.allow('write')
models = models_bucket.allow('write', 'read')
generate_audio = gen_audio_job.allow('submit')
download_audio_model = download_audio_model_topic.allow("publish")

Expand Down Expand Up @@ -560,6 +560,7 @@ ENV HANDLER=${HANDLER}

ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy PYTHONPATH=.
WORKDIR /app
COPY uv.lock pyproject.toml /app/
RUN --mount=type=cache,target=/root/.cache/uv \
--mount=type=bind,source=uv.lock,target=uv.lock \
--mount=type=bind,source=pyproject.toml,target=pyproject.toml \
Expand All @@ -584,9 +585,10 @@ ENV NVIDIA_REQUIRE_CUDA="cuda>=8.0"
RUN apt-get update -y && \
apt-get install -y software-properties-common && \
add-apt-repository ppa:deadsnakes/ppa && \
apt-get update -y && \
apt-get install -y python3.11 && \
ln -sf /usr/bin/python3.11 /usr/local/bin/python3.11
ln -sf /usr/bin/python3.11 /usr/local/bin/python3.11 && \
ln -sf /usr/bin/python3.11 /usr/local/bin/python3 && \
ln -sf /usr/bin/python3.11 /usr/local/bin/python

# Copy the application from the builder
COPY --from=builder --chown=app:app /app /app
Expand Down Expand Up @@ -712,7 +714,7 @@ If you want to use a GPU you'll need to request a quota increase for G instances
To request a quota increase for G instances in AWS you can follow these steps:

1. Go to the [AWS Service Quotas for EC2](https://console.aws.amazon.com/servicequotas/home/services/ec2/quotas) page.
2. Find/Search for **All G and VT Spot Instance Requests**
2. Find/Search for **Running On-Demand G and VT instances**
3. Click **Request quota increase**
4. Choose an appropriate value, e.g. 4, 8 or 16 depending on your needs

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/python/podcast-transcription.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ If you want to use a GPU you'll need to request a quota increase for G instances
To request a quota increase for G instances in AWS you can follow these steps:

1. Go to the [AWS Service Quotas for EC2](https://console.aws.amazon.com/servicequotas/home/services/ec2/quotas) page.
2. Find/Search for **All G and VT Spot Instance Requests**
2. Find/Search for **Running On-Demand G and VT instances**
3. Click **Request quota increase**
4. Choose an appropriate value, e.g. 4, 8 or 16 depending on your needs

Expand Down
Loading