From 30657fc7540db207e8d3a559eafae73156d44ec9 Mon Sep 17 00:00:00 2001 From: tmonty12 Date: Thu, 2 Jan 2025 13:49:15 -0800 Subject: [PATCH 1/2] fixes to launchable --- launchable/PDFtoPodcast.ipynb | 29 ++++++++++++++--------------- setup.sh | 3 +++ 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/launchable/PDFtoPodcast.ipynb b/launchable/PDFtoPodcast.ipynb index efed40a..5edd68c 100644 --- a/launchable/PDFtoPodcast.ipynb +++ b/launchable/PDFtoPodcast.ipynb @@ -249,7 +249,6 @@ "source": [ "%%bash\n", "\n", - "source $HOME/.local/bin/env\n", "cd pdf-to-podcast/\n", "\n", "make uv" @@ -319,16 +318,16 @@ "This command should produce similiar output in the following format:\n", "\n", "```\n", - "CONTAINER ID NAMES STATUS\n", - "12050b799fd2 ai-research-assistant-pdf-api-1 Up About a minute\n", - "14315da77827 ai-research-assistant-api-service-1 Up About a minute\n", - "aa8489e0b3b9 ai-research-assistant-celery-worker-1 Up About a minute\n", - "09dcb0857515 ai-research-assistant-agent-service-1 Up About a minute\n", - "58c46d612fbf ai-research-assistant-tts-service-1 Up About a minute\n", - "500a43363550 ai-research-assistant-pdf-service-1 Up About a minute\n", - "43bc1772a0aa ai-research-assistant-minio-1 Up About a minute (healthy)\n", - "2b6bae7f4c1d ai-research-assistant-jaeger-1 Up About a minute (healthy)\n", - "60e4d815d2be ai-research-assistant-redis-1 Up About a minute\n", + "CONTAINER ID NAMES STATUS\n", + "ae5db10fcf7c pdf-to-podcast-pdf-api-1 Up About a minute\n", + "fbc8d417e85c pdf-to-podcast-api-service-1 Up About a minute\n", + "b34b5d64ad4c pdf-to-podcast-celery-worker-1 Up About a minute\n", + "6050545be1e4 pdf-to-podcast-pdf-service-1 Up About a minute\n", + "c8cc9253e8a9 pdf-to-podcast-tts-service-1 Up About a minute\n", + "5d29deb76eda pdf-to-podcast-agent-service-1 Up About a minute\n", + "1dfc6c61cec9 pdf-to-podcast-minio-1 Up About a minute (healthy)\n", + "aa967d41a513 pdf-to-podcast-redis-1 Up About a minute\n", + "eb881c33cc64 pdf-to-podcast-jaeger-1 Up About a minute (healthy)\n", "```" ] }, @@ -522,17 +521,17 @@ " print(\"Submitting podcast generation request...\")\n", " job_id = generate_podcast(\n", " target_pdf_paths=[\n", - " \"ai-research-assistant/samples/singularity.pdf\",\n", + " \"pdf-to-podcast/samples/investorpres-main.pdf\",\n", " ],\n", " context_pdf_paths=[\n", - " \"ai-research-assistant/samples/memserve.pdf\",\n", - " \"ai-research-assistant/samples/mooncake.pdf\"\n", + " \"pdf-to-podcast/samples/bofa-context.pdf\",\n", + " \"pdf-to-podcast/samples/citi-context.pdf\"\n", " ],\n", " name=\"NVIDIA Earnings Analysis\",\n", " duration=15,\n", " speaker_1_name=\"Alex\",\n", " is_monologue=True,\n", - " guide=\"Focus on how the future of large scale inference will evolve\"\n", + " guide=\"Focus on NVIDIA's earnings and the key points driving it's growth\"\n", " )\n", " print(f\"Job ID: {job_id}\")\n", " wait_for_completion(job_id)\n", diff --git a/setup.sh b/setup.sh index a05e054..dc891ff 100755 --- a/setup.sh +++ b/setup.sh @@ -5,6 +5,9 @@ if ! command -v uv &> /dev/null; then curl -LsSf https://astral.sh/uv/install.sh | sh fi +# Add uv to path +source $HOME/.local/bin/env + # Create a new virtual environment uv venv From 041ab1de75338dd76b6efa9bdc5189df3dd0a96e Mon Sep 17 00:00:00 2001 From: tmonty12 Date: Thu, 2 Jan 2025 13:54:57 -0800 Subject: [PATCH 2/2] exit setup script on error --- setup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.sh b/setup.sh index dc891ff..eb59300 100755 --- a/setup.sh +++ b/setup.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -e + # Install uv if not already installed if ! command -v uv &> /dev/null; then curl -LsSf https://astral.sh/uv/install.sh | sh