cosmetics

This commit is contained in:
LUIS NOVO 2024-11-20 12:42:23 -03:00
parent 3d6d9c1195
commit 167f286e9f
5 changed files with 8 additions and 6 deletions

View file

@ -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()

View file

@ -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()

View file

@ -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"

View file

@ -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)":

View file

@ -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."
)