small changes
Browse files
app.py
CHANGED
|
@@ -52,14 +52,11 @@ def get_paragraphs(soup):
|
|
| 52 |
|
| 53 |
def get_hindex(headlines):
|
| 54 |
global url
|
| 55 |
-
|
|
|
|
| 56 |
options=headlines)
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
#st.text(paras)
|
| 60 |
-
return hindex
|
| 61 |
-
|
| 62 |
-
|
| 63 |
|
| 64 |
def get_story(index):
|
| 65 |
global links
|
|
|
|
| 52 |
|
| 53 |
def get_hindex(headlines):
|
| 54 |
global url
|
| 55 |
+
with st.container(border=True):
|
| 56 |
+
sbox = st.selectbox(f"\n\n \nPick a story from NPR {url}",
|
| 57 |
options=headlines)
|
| 58 |
+
hindex = headlines.index(sbox)
|
| 59 |
+
return hindex
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
|
| 61 |
def get_story(index):
|
| 62 |
global links
|