Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def main():
|
|
| 22 |
</style>
|
| 23 |
"""
|
| 24 |
st.set_page_config(page_title='Articles Recommender')
|
| 25 |
-
st.markdown(styles, unsafe_allow_html=True)
|
| 26 |
# Initialize session state for login status
|
| 27 |
if "logged_in" not in st.session_state:
|
| 28 |
st.session_state.logged_in = False
|
|
@@ -52,7 +52,7 @@ def main():
|
|
| 52 |
btn = st.button('Search')
|
| 53 |
if btn and query:
|
| 54 |
with st.spinner('Searching...'):
|
| 55 |
-
st.
|
| 56 |
# Example: Provide a logout button
|
| 57 |
if st.sidebar.button("Logout"):
|
| 58 |
st.session_state.logged_in = False
|
|
|
|
| 22 |
</style>
|
| 23 |
"""
|
| 24 |
st.set_page_config(page_title='Articles Recommender')
|
| 25 |
+
# st.markdown(styles, unsafe_allow_html=True)
|
| 26 |
# Initialize session state for login status
|
| 27 |
if "logged_in" not in st.session_state:
|
| 28 |
st.session_state.logged_in = False
|
|
|
|
| 52 |
btn = st.button('Search')
|
| 53 |
if btn and query:
|
| 54 |
with st.spinner('Searching...'):
|
| 55 |
+
st.write(recommend(query))
|
| 56 |
# Example: Provide a logout button
|
| 57 |
if st.sidebar.button("Logout"):
|
| 58 |
st.session_state.logged_in = False
|