Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
|
|
|
| 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")
|