nickmuchi commited on
Commit
0b918ce
·
verified ·
1 Parent(s): 4d12526

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -43,10 +43,11 @@ def main():
43
  if pods:
44
  # Dropdown box
45
  st.sidebar.subheader("Available Podcasts Feeds")
46
- podcast_five_titles = list(pods.keys())
47
  selected_podcast = st.sidebar.selectbox("Select Podcast", options=podcast_five_titles)
48
 
49
- if selected_podcast:
 
50
  podcast_link, podcast_image = pods[selected_podcast]
51
 
52
  st.header("Newsletter Content")
 
43
  if pods:
44
  # Dropdown box
45
  st.sidebar.subheader("Available Podcasts Feeds")
46
+ podcast_five_titles = ['Select an episode'] + list(pods.keys()) # Adding a placeholder at the beginning
47
  selected_podcast = st.sidebar.selectbox("Select Podcast", options=podcast_five_titles)
48
 
49
+ # Check if the user has made a selection other than the placeholder
50
+ if selected_podcast and selected_podcast != 'Select an episode':
51
  podcast_link, podcast_image = pods[selected_podcast]
52
 
53
  st.header("Newsletter Content")