ksvmuralidhar commited on
Commit
f043e94
1 Parent(s): 182742f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -77,7 +77,7 @@ def main():
77
  news_txt = st.text_area("Paste the headline of a news article and hit Ctrl+Enter:", "", height=30)
78
  top_n = st.slider('Select the number of similar articles to display', 1, 100, 10)
79
 
80
- if news_txt:
81
  result = find_similar_news(news_txt, top_n)
82
  st.markdown(result, unsafe_allow_html=True)
83
 
 
77
  news_txt = st.text_area("Paste the headline of a news article and hit Ctrl+Enter:", "", height=30)
78
  top_n = st.slider('Select the number of similar articles to display', 1, 100, 10)
79
 
80
+ if st.button("Submit"):
81
  result = find_similar_news(news_txt, top_n)
82
  st.markdown(result, unsafe_allow_html=True)
83