From 05dbbebeb65a5e11cbc0147d37407bd6107e635f Mon Sep 17 00:00:00 2001 From: Edward Donner Date: Wed, 15 Jan 2025 21:41:16 -0500 Subject: [PATCH] Minor tweaks and fix in week 8 --- week1/Guide to Jupyter.ipynb | 2 +- .../Week1-Challenge-LocalGPT.ipynb | 2 +- .../day5 company brochure.ipynb | 2 +- ...eek1-collaborative-approach-two-llms.ipynb | 4 ++-- week2/day3.ipynb | 22 ++++++++++++++++++- .../Day 3 using gemini.ipynb | 2 +- .../week4-day4-challenge.ipynb | 2 +- week8/day2.0.ipynb | 6 ++++- week8/price_is_right.py | 1 + 9 files changed, 34 insertions(+), 9 deletions(-) diff --git a/week1/Guide to Jupyter.ipynb b/week1/Guide to Jupyter.ipynb index 0f0ddf2..ebcc9f0 100644 --- a/week1/Guide to Jupyter.ipynb +++ b/week1/Guide to Jupyter.ipynb @@ -278,7 +278,7 @@ "# is up to date with any new upgrades to packages;\n", "# But it might take a minute and will print a lot to output\n", "\n", - "!conda env update -f ../environment.yml --prune" + "!conda env update -f ../environment.yml" ] }, { diff --git a/week1/community-contributions/Week1-Challenge-LocalGPT.ipynb b/week1/community-contributions/Week1-Challenge-LocalGPT.ipynb index 2561345..1f7b7b9 100644 --- a/week1/community-contributions/Week1-Challenge-LocalGPT.ipynb +++ b/week1/community-contributions/Week1-Challenge-LocalGPT.ipynb @@ -140,7 +140,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.9" + "version": "3.11.11" } }, "nbformat": 4, diff --git a/week1/community-contributions/day5 company brochure.ipynb b/week1/community-contributions/day5 company brochure.ipynb index d892b68..aa24428 100644 --- a/week1/community-contributions/day5 company brochure.ipynb +++ b/week1/community-contributions/day5 company brochure.ipynb @@ -445,7 +445,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.10" + "version": "3.11.11" } }, "nbformat": 4, diff --git a/week1/community-contributions/week1-collaborative-approach-two-llms.ipynb b/week1/community-contributions/week1-collaborative-approach-two-llms.ipynb index 87b820a..42e19ac 100644 --- a/week1/community-contributions/week1-collaborative-approach-two-llms.ipynb +++ b/week1/community-contributions/week1-collaborative-approach-two-llms.ipynb @@ -310,7 +310,7 @@ ], "metadata": { "kernelspec": { - "display_name": "llm_env", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -324,7 +324,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.9" + "version": "3.11.11" } }, "nbformat": 4, diff --git a/week2/day3.ipynb b/week2/day3.ipynb index 2dd936b..28e6896 100644 --- a/week2/day3.ipynb +++ b/week2/day3.ipynb @@ -136,6 +136,26 @@ " yield response" ] }, + { + "cell_type": "code", + "execution_count": null, + "id": "40a2d5ad-e907-465e-8397-3120583a5bf9", + "metadata": {}, + "outputs": [], + "source": [ + "!pip show gradio" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "a7fed1b9-c502-4eea-b649-ca00458d5c45", + "metadata": {}, + "outputs": [], + "source": [ + "# 5.8.0 to 5.12" + ] + }, { "cell_type": "markdown", "id": "1334422a-808f-4147-9c4c-57d63d9780d0", @@ -151,7 +171,7 @@ "metadata": {}, "outputs": [], "source": [ - "gr.ChatInterface(fn=chat, type=\"messages\").launch()" + "gr.ChatInterface(fn=chat, type=\"messages\").launch(pwa=True)" ] }, { diff --git a/week4/community-contributions/Day 3 using gemini.ipynb b/week4/community-contributions/Day 3 using gemini.ipynb index 43faf18..60000d3 100644 --- a/week4/community-contributions/Day 3 using gemini.ipynb +++ b/week4/community-contributions/Day 3 using gemini.ipynb @@ -485,7 +485,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.10" + "version": "3.11.11" } }, "nbformat": 4, diff --git a/week4/community-contributions/week4-day4-challenge.ipynb b/week4/community-contributions/week4-day4-challenge.ipynb index 00a21f3..6e3dd44 100644 --- a/week4/community-contributions/week4-day4-challenge.ipynb +++ b/week4/community-contributions/week4-day4-challenge.ipynb @@ -681,7 +681,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.10" + "version": "3.11.11" } }, "nbformat": 4, diff --git a/week8/day2.0.ipynb b/week8/day2.0.ipynb index 27424e6..088b460 100644 --- a/week8/day2.0.ipynb +++ b/week8/day2.0.ipynb @@ -125,7 +125,11 @@ "\n", "Now we will create a Chroma datastore with 400,000 products from our training dataset! It's getting real!\n", "\n", - "Note that we won't be using LangChain, but the API is very straightforward and consistent with before." + "Note that we won't be using LangChain, but the API is very straightforward and consistent with before.\n", + "\n", + "Special note: if Chroma crashes and you're a Windows user, you should try rolling back to an earlier version of the Chroma library with: \n", + "`!pip install chromadb==0.5.0` \n", + "With many thanks to student Kelly Z. for finding this out and pointing to the GitHub issue [here](https://github.com/chroma-core/chroma/issues/2513). " ] }, { diff --git a/week8/price_is_right.py b/week8/price_is_right.py index d6a1bc9..7d79798 100644 --- a/week8/price_is_right.py +++ b/week8/price_is_right.py @@ -15,6 +15,7 @@ class App: def start(): self.agent_framework = DealAgentFramework() + self.agent_framework.init_agents_as_needed() opportunities = self.agent_framework.memory table = table_for(opportunities) return table