Spaces:
Sleeping
Sleeping
import streamlit as st | |
from Article_summarizer import article_sum | |
from News_scrapper import News_scrapper | |
# Main function for the app | |
def main(): | |
st.sidebar.title("Navigation") | |
selection = st.sidebar.radio("Choose Utility", ["Article Summarizer", "News Scrapper"]) | |
if selection == "Article Summarizer": | |
article_sum() | |
elif selection == "News Scrapper": | |
News_scrapper() | |
# Run the app | |
if __name__ == "__main__": | |
main() |