Muhammad Murtaza Naqi (Assistant Manager - Data Analyst) commited on
Commit
19181ff
1 Parent(s): 244853a

Add application file

Browse files
Files changed (1) hide show
  1. app.py +19 -0
app.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from Article_summarizer import article_sum
3
+ from News_scrapper import News_scrapper
4
+
5
+
6
+ # Main function for the app
7
+ def main():
8
+ st.sidebar.title("Navigation")
9
+ selection = st.sidebar.radio("Choose Utility", ["Article Summarizer", "News Scrapper"])
10
+
11
+ if selection == "Article Summarizer":
12
+ article_sum()
13
+ elif selection == "News Scrapper":
14
+ News_scrapper()
15
+
16
+
17
+ # Run the app
18
+ if __name__ == "__main__":
19
+ main()