Skip to content

Instantly share code, notes, and snippets.

@quickcode00
Created September 12, 2021 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quickcode00/51bcb920e157fd2d3a3b4566d3ecea82 to your computer and use it in GitHub Desktop.
Save quickcode00/51bcb920e157fd2d3a3b4566d3ecea82 to your computer and use it in GitHub Desktop.
import streamlit as st
st.title('News Summarizer')
# Gives option between top stories and search term
search_choice = st.sidebar.radio('', options=['Top Headlines', 'Search Term'])
# Takes user input for max number of sentences per summary
sentences_count = st.sidebar.slider('Max sentences per summary:', min_value=1,
max_value=10,
value=3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment