diff --git a/src/uis/audioui.py b/src/uis/audioui.py index 3377f37..3d48374 100644 --- a/src/uis/audioui.py +++ b/src/uis/audioui.py @@ -8,17 +8,16 @@ async def audioui(uichat=st.empty()): """ - Main chat interface + Audiocast interface """ + uichat.chat_input("What would you like to listen to?", disabled=True) uichat.empty() - with st.container(): - if not st.session_state.current_audiocast: - st.info("Using your audiocast specifications") - - summary = st.session_state.user_specification - content_category = st.session_state.content_category - await use_audiocast_request(summary, content_category) - else: - st.info("Audiocast generation completed!") - render_audiocast() + if not st.session_state.current_audiocast: + st.info("Using your audiocast specifications") + summary = st.session_state.user_specification + content_category = st.session_state.content_category + await use_audiocast_request(summary, content_category) + else: + st.info("Audiocast generation completed!") + render_audiocast() diff --git a/src/uis/chatui.py b/src/uis/chatui.py index b0e50ac..02b4e35 100644 --- a/src/uis/chatui.py +++ b/src/uis/chatui.py @@ -11,7 +11,7 @@ async def chatui(uichat=st.empty()): """ - chat interface + Chat interface """ st.write( "Tell me what you'd like to listen to, and I'll create an audiocast for you!" diff --git a/src/utils/render_chat.py b/src/utils/render_chat.py index cebafb3..4090147 100644 --- a/src/utils/render_chat.py +++ b/src/utils/render_chat.py @@ -31,7 +31,7 @@ def render_chat_history(): """ Render chat history """ - st.info("Chat session to understand your content preferences") + st.info("Chat session to understand your preferences") with st.chat_message("user"): message = st.session_state.messages[0]