cosmetics
This commit is contained in:
parent
3d6d9c1195
commit
167f286e9f
5 changed files with 8 additions and 6 deletions
|
|
@ -78,7 +78,7 @@ with ask_tab:
|
||||||
)
|
)
|
||||||
if not model_manager.embedding_model:
|
if not model_manager.embedding_model:
|
||||||
st.warning(
|
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
|
ask_bt = st.button("Ask") if model_manager.embedding_model else None
|
||||||
placeholder = st.container()
|
placeholder = st.container()
|
||||||
|
|
|
||||||
|
|
@ -38,12 +38,12 @@ for model in text_models:
|
||||||
|
|
||||||
|
|
||||||
if len(text_to_speech_models) == 0:
|
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()
|
st.stop()
|
||||||
|
|
||||||
if len(text_models) == 0:
|
if len(text_models) == 0:
|
||||||
st.error(
|
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()
|
st.stop()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ def source_panel(source_id: str, notebook_id=None, modal=False):
|
||||||
|
|
||||||
if not model_manager.embedding_model:
|
if not model_manager.embedding_model:
|
||||||
help = (
|
help = (
|
||||||
"No embedding model found. Please, select one on the settings page."
|
"No embedding model found. Please, select one on the Models page."
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
help = "This will generate your embedding vectors on the database for powerful search capabilities"
|
help = "This will generate your embedding vectors on the database for powerful search capabilities"
|
||||||
|
|
|
||||||
|
|
@ -88,6 +88,8 @@ def chat_sidebar(current_notebook: Notebook, current_session: ChatSession):
|
||||||
"Podcast Length",
|
"Podcast Length",
|
||||||
["Short (5-10 min)", "Medium (10-20 min)", "Longer (20+ min)"],
|
["Short (5-10 min)", "Medium (10-20 min)", "Longer (20+ min)"],
|
||||||
)
|
)
|
||||||
|
chunks = None
|
||||||
|
min_chunk_size = None
|
||||||
if podcast_length == "Short (5-10 min)":
|
if podcast_length == "Short (5-10 min)":
|
||||||
longform = False
|
longform = False
|
||||||
elif podcast_length == "Medium (10-20 min)":
|
elif podcast_length == "Medium (10-20 min)":
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ def check_models(only_mandatory=True, stop_on_error=True):
|
||||||
|
|
||||||
if not all(mandatory_models):
|
if not all(mandatory_models):
|
||||||
st.error(
|
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:
|
if stop_on_error:
|
||||||
st.stop()
|
st.stop()
|
||||||
|
|
@ -130,7 +130,7 @@ def check_models(only_mandatory=True, stop_on_error=True):
|
||||||
if not only_mandatory:
|
if not only_mandatory:
|
||||||
if not all(all_models):
|
if not all(all_models):
|
||||||
st.warning(
|
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."
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue