From 86cdfb68d1a6b1af51d5e7fed072ac7e1ba6d2e1 Mon Sep 17 00:00:00 2001 From: dKosarevsky <36589322+dKosarevsky@users.noreply.github.com> Date: Thu, 2 Mar 2023 22:23:14 +0300 Subject: [PATCH 1/3] Update helpers.py fix typo --- src/utils/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/helpers.py b/src/utils/helpers.py index 78299d7..c05c393 100644 --- a/src/utils/helpers.py +++ b/src/utils/helpers.py @@ -42,7 +42,7 @@ def show_player(ai_content: str, lang_code: str, is_speech_slow: bool) -> None: sound_file = BytesIO() tts = gTTS(text=ai_content, lang=lang_code, slow=is_speech_slow) tts.write_to_fp(sound_file) - st.write("Push play to hear sound of AI:") + st.write("To hear the sound of AI, press the play button.") st.audio(sound_file) From eec8dd86fa42fabdfdb52384b4f187c4ad4b8c28 Mon Sep 17 00:00:00 2001 From: dKosarevsky <36589322+dKosarevsky@users.noreply.github.com> Date: Thu, 2 Mar 2023 22:25:47 +0300 Subject: [PATCH 2/3] Update chat.py --- chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chat.py b/chat.py index 472fac1..57d0603 100644 --- a/chat.py +++ b/chat.py @@ -29,7 +29,7 @@ def main() -> None: api_key = st.text_input(label="Input OpenAI API key:") api_key = api_key_checker(api_key) - user_text = st.text_area(label="Start your conversation with AI:") + user_text = st.text_area(label="Begin your dialogue with AI:") if st.button("Rerun"): st.cache_data.clear() From d8000a5e86a56b889b5a896dec38400d5f122242 Mon Sep 17 00:00:00 2001 From: dKosarevsky <36589322+dKosarevsky@users.noreply.github.com> Date: Thu, 2 Mar 2023 22:28:09 +0300 Subject: [PATCH 3/3] Update helpers.py sound -> voice --- src/utils/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/helpers.py b/src/utils/helpers.py index c05c393..cf1d6aa 100644 --- a/src/utils/helpers.py +++ b/src/utils/helpers.py @@ -42,7 +42,7 @@ def show_player(ai_content: str, lang_code: str, is_speech_slow: bool) -> None: sound_file = BytesIO() tts = gTTS(text=ai_content, lang=lang_code, slow=is_speech_slow) tts.write_to_fp(sound_file) - st.write("To hear the sound of AI, press the play button.") + st.write("To hear the voice of AI, press the play button.") st.audio(sound_file)