From aafd7b82eb94653b7ae66f8be66bb349d43a86ff Mon Sep 17 00:00:00 2001 From: Freddy Boulton Date: Mon, 24 Feb 2025 21:21:52 -0500 Subject: [PATCH] Add code (#70) Co-authored-by: Freddy Boulton --- demo/gemini_audio_video/app.py | 8 ++++---- demo/phonic_chat/app.py | 2 +- docs/index.md | 2 +- frontend/shared/PulsingIcon.svelte | 2 +- pyproject.toml | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/demo/gemini_audio_video/app.py b/demo/gemini_audio_video/app.py index 77b2d51..4a9a457 100644 --- a/demo/gemini_audio_video/app.py +++ b/demo/gemini_audio_video/app.py @@ -120,8 +120,8 @@ stream = Stream( ], ui_args={ "icon": "https://www.gstatic.com/lamda/images/gemini_favicon_f069958c85030456e93de685481c559f160ea06b.png", - "pulse_color": "rgb(35, 157, 225)", - "icon_button_color": "rgb(35, 157, 225)", + "pulse_color": "rgb(255, 255, 255)", + "icon_button_color": "rgb(255, 255, 255)", "title": "Gemini Audio Video Chat", }, ) @@ -157,8 +157,8 @@ with gr.Blocks(css=css) as demo: if get_space() == "spaces" else None, icon="https://www.gstatic.com/lamda/images/gemini_favicon_f069958c85030456e93de685481c559f160ea06b.png", - pulse_color="rgb(35, 157, 225)", - icon_button_color="rgb(35, 157, 225)", + pulse_color="rgb(255, 255, 255)", + icon_button_color="rgb(255, 255, 255)", ) with gr.Column(): image_input = gr.Image( diff --git a/demo/phonic_chat/app.py b/demo/phonic_chat/app.py index 69f1240..3acde98 100644 --- a/demo/phonic_chat/app.py +++ b/demo/phonic_chat/app.py @@ -94,7 +94,7 @@ stream = Stream( additional_inputs=[ gr.Dropdown( choices=voice_ids, - value="katherine", + value="victoria", label="Voice", info="Select a voice from the dropdown", ) diff --git a/docs/index.md b/docs/index.md index 554e01c..9064987 100644 --- a/docs/index.md +++ b/docs/index.md @@ -54,7 +54,7 @@ The `Stream` has three main methods: yield audio stream = Stream( - handler=ReplyOnPause(detection), + handler=ReplyOnPause(echo), modality="audio", mode="send-receive", ) diff --git a/frontend/shared/PulsingIcon.svelte b/frontend/shared/PulsingIcon.svelte index 5f32c19..2fab0b4 100644 --- a/frontend/shared/PulsingIcon.svelte +++ b/frontend/shared/PulsingIcon.svelte @@ -123,7 +123,7 @@ width: 100%; height: 100%; object-fit: contain; - filter: brightness(0) invert(1); + border-radius: 50%; } .pulse-ring { diff --git a/pyproject.toml b/pyproject.toml index 624ad26..44bcd41 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ build-backend = "hatchling.build" [project] name = "fastrtc" -version = "0.0.4.post1" +version = "0.0.4.post2" description = "The realtime communication library for Python" readme = "README.md" license = "apache-2.0"