Skip to content

Commit

Permalink
render a default state for sidebar content
Browse files Browse the repository at this point in the history
  • Loading branch information
nwaughachukwuma committed Oct 30, 2024
1 parent 2b5d162 commit a55a630
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ async def main():
st.sidebar.subheader(
f"Content Category: {st.session_state.content_category.capitalize()}"
)
else:
st.sidebar.markdown("> Your preferences and audiocast metadata will appear here")

# Declare chat interface container
uichat = st.empty()
Expand Down
2 changes: 1 addition & 1 deletion src/uis/audioui.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async def audioui(uichat: DeltaGenerator):
uichat.empty()

if not st.session_state.current_audiocast:
st.info("Using your specifications")
st.info("Using your preferences")

summary = st.session_state.user_specification
content_category = st.session_state.content_category
Expand Down
2 changes: 1 addition & 1 deletion src/utils/chat_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ async def use_audiocast_request(summary: str, content_category: ContentCategory)
Call audiocast creating workflow
Args:
summary (str): user request summary or user specification
summary (str): user request summary or preferences
content_category (ContentCategory): content category
"""
try:
Expand Down
2 changes: 1 addition & 1 deletion src/utils/render_audiocast.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class GenerateAudiocastDict(TypedDict):

def render_audiocast():
"""
Render the audiocast based on the user's specifications
Render the audiocast based on the user's preferences
- Display current audiocast if available
"""
st.header("Your Audiocast")
Expand Down

0 comments on commit a55a630

Please sign in to comment.