From 23eb6e3d463d97a7c193e4d46158bdd7a81e5873 Mon Sep 17 00:00:00 2001 From: chadbailey59 Date: Fri, 7 Feb 2025 13:58:02 -0600 Subject: [PATCH] storybot fixes (#1175) * storybot fixes * readme cleanup --- examples/storytelling-chatbot/README.md | 2 ++ examples/storytelling-chatbot/env.example | 4 +--- examples/storytelling-chatbot/requirements.txt | 3 +-- examples/storytelling-chatbot/src/bot.py | 3 +-- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/examples/storytelling-chatbot/README.md b/examples/storytelling-chatbot/README.md index 8230deba8..08da91044 100644 --- a/examples/storytelling-chatbot/README.md +++ b/examples/storytelling-chatbot/README.md @@ -74,6 +74,8 @@ If you'd like to run a custom domain or port: ➡️ Open the host URL in your browser `http://localhost:7860` +If you've run previous versions of the demo, make sure to set `ENV=dev`, and remove the `RUN_AS_VM` line from the .env file. + --- ## Improvements to make diff --git a/examples/storytelling-chatbot/env.example b/examples/storytelling-chatbot/env.example index 3b6e66316..513715897 100644 --- a/examples/storytelling-chatbot/env.example +++ b/examples/storytelling-chatbot/env.example @@ -3,6 +3,4 @@ DAILY_SAMPLE_ROOM_URL= ELEVENLABS_API_KEY= ELEVENLABS_VOICE_ID= GOOGLE_API_KEY= - -ENV= # dev | production -RUN_AS_VM= # Set this if you want to run bots on process (not launch a new VM) \ No newline at end of file +ENV=dev diff --git a/examples/storytelling-chatbot/requirements.txt b/examples/storytelling-chatbot/requirements.txt index c8cd82646..354e169f0 100644 --- a/examples/storytelling-chatbot/requirements.txt +++ b/examples/storytelling-chatbot/requirements.txt @@ -2,5 +2,4 @@ async_timeout fastapi uvicorn python-dotenv --e "../..[daily,silero,openai,fal,cartesia,google]" --e "../../../python-genai" +pipecat-ai[daily,silero,openai,cartesia,google] \ No newline at end of file diff --git a/examples/storytelling-chatbot/src/bot.py b/examples/storytelling-chatbot/src/bot.py index 05f8974bb..f7edbe1d8 100644 --- a/examples/storytelling-chatbot/src/bot.py +++ b/examples/storytelling-chatbot/src/bot.py @@ -23,8 +23,7 @@ from pipecat.pipeline.runner import PipelineRunner from pipecat.pipeline.task import PipelineParams, PipelineTask from pipecat.processors.aggregators.openai_llm_context import OpenAILLMContext from pipecat.services.elevenlabs import ElevenLabsTTSService -from pipecat.services.fal import FalImageGenService -from pipecat.services.google import GoogleLLMService +from pipecat.services.google import GoogleImageGenService, GoogleLLMService from pipecat.transports.services.daily import ( DailyParams, DailyTransport,