wip - longform podcasts
This commit is contained in:
parent
dd99531b00
commit
cf4a219820
1 changed files with 12 additions and 5 deletions
|
|
@ -83,11 +83,18 @@ def chat_sidebar(current_notebook: Notebook, current_session: ChatSession):
|
||||||
instructions = st.text_area(
|
instructions = st.text_area(
|
||||||
"Instructions", value=selected_template.user_instructions
|
"Instructions", value=selected_template.user_instructions
|
||||||
)
|
)
|
||||||
podcast_length = st.radio(
|
# if selected_template.provider == "gemini":
|
||||||
"Podcast Length",
|
# st.warning(
|
||||||
["Short (5-10 min)", "Long (20-30 min)"],
|
# "Gemini models are not available for long podcast generation yet. So, this will be a short podcast. Coming soon. Pinky promise. If you want to try long podcasts, please change your text to speech model to Open AI."
|
||||||
)
|
# )
|
||||||
longform = podcast_length == "Long (20-30 min)"
|
# longform = False
|
||||||
|
# else:
|
||||||
|
# podcast_length = st.radio(
|
||||||
|
# "Podcast Length",
|
||||||
|
# ["Short (5-10 min)", "Long (20-30 min)"],
|
||||||
|
# )
|
||||||
|
# longform = podcast_length == "Long (20-30 min)"
|
||||||
|
longform = False
|
||||||
if len(context.get("note", [])) + len(context.get("source", [])) == 0:
|
if len(context.get("note", [])) + len(context.get("source", [])) == 0:
|
||||||
st.warning(
|
st.warning(
|
||||||
"No notes or sources found in context. You don't want a boring podcast, right? So, add some context first."
|
"No notes or sources found in context. You don't want a boring podcast, right? So, add some context first."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue