From 167f286e9f14f81cd67c0270ffbc4fa2d5295c5b Mon Sep 17 00:00:00 2001 From: LUIS NOVO Date: Wed, 20 Nov 2024 12:42:23 -0300 Subject: [PATCH] cosmetics --- pages/3_🔍_Ask_and_Search.py | 2 +- pages/5_🎙️_Podcasts.py | 4 ++-- pages/components/source_panel.py | 2 +- pages/stream_app/chat.py | 2 ++ pages/stream_app/utils.py | 4 ++-- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/pages/3_🔍_Ask_and_Search.py b/pages/3_🔍_Ask_and_Search.py index 452c9bf..995a020 100644 --- a/pages/3_🔍_Ask_and_Search.py +++ b/pages/3_🔍_Ask_and_Search.py @@ -78,7 +78,7 @@ with ask_tab: ) if not model_manager.embedding_model: st.warning( - "You can't use this feature because you have no embedding model selected. Please set one up in the Settings page." + "You can't use this feature because you have no embedding model selected. Please set one up in the Models page." ) ask_bt = st.button("Ask") if model_manager.embedding_model else None placeholder = st.container() diff --git a/pages/5_🎙️_Podcasts.py b/pages/5_🎙️_Podcasts.py index 4e152f4..9f00bbe 100644 --- a/pages/5_🎙️_Podcasts.py +++ b/pages/5_🎙️_Podcasts.py @@ -38,12 +38,12 @@ for model in text_models: if len(text_to_speech_models) == 0: - st.error("No text to speech models found. Please set one up in the Settings page.") + st.error("No text to speech models found. Please set one up in the Models page.") st.stop() if len(text_models) == 0: st.error( - "No language models found. Please set one up in the Settings page. Only Gemini, Open AI and Anthropic models supported for transcript generation." + "No language models found. Please set one up in the Models page. Only Gemini, Open AI and Anthropic models supported for transcript generation." ) st.stop() diff --git a/pages/components/source_panel.py b/pages/components/source_panel.py index 682fb5e..5767a69 100644 --- a/pages/components/source_panel.py +++ b/pages/components/source_panel.py @@ -74,7 +74,7 @@ def source_panel(source_id: str, notebook_id=None, modal=False): if not model_manager.embedding_model: help = ( - "No embedding model found. Please, select one on the settings page." + "No embedding model found. Please, select one on the Models page." ) else: help = "This will generate your embedding vectors on the database for powerful search capabilities" diff --git a/pages/stream_app/chat.py b/pages/stream_app/chat.py index 0baff8c..6c121a5 100644 --- a/pages/stream_app/chat.py +++ b/pages/stream_app/chat.py @@ -88,6 +88,8 @@ def chat_sidebar(current_notebook: Notebook, current_session: ChatSession): "Podcast Length", ["Short (5-10 min)", "Medium (10-20 min)", "Longer (20+ min)"], ) + chunks = None + min_chunk_size = None if podcast_length == "Short (5-10 min)": longform = False elif podcast_length == "Medium (10-20 min)": diff --git a/pages/stream_app/utils.py b/pages/stream_app/utils.py index 758d6cf..d5a832f 100644 --- a/pages/stream_app/utils.py +++ b/pages/stream_app/utils.py @@ -122,7 +122,7 @@ def check_models(only_mandatory=True, stop_on_error=True): if not all(mandatory_models): st.error( - "You are missing some default models and the app will not work as expected. Please, select them on the settings page." + "You are missing some default models and the app will not work as expected. Please, select them on the Models page." ) if stop_on_error: st.stop() @@ -130,7 +130,7 @@ def check_models(only_mandatory=True, stop_on_error=True): if not only_mandatory: if not all(all_models): st.warning( - "You are missing some important optional models. The app might not work as expected. Please, select them on the settings page." + "You are missing some important optional models. The app might not work as expected. Please, select them on the Models page." )