-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcovid_tweet_main.py
47 lines (32 loc) · 1 KB
/
covid_tweet_main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# -*- coding: utf-8 -*-
#https://www.hackerearth.com/practice/
#https://amueller.github.io/word_cloud/auto_examples/colored_by_group.html
import prediction
import top_wordcloud
import heatmap
import dataframe
import sentiment
import home_page
import streamlit as st
#add home page
hide_menu = """
<style>
#MainMenu{
visibility:hidden;
}
footer:before{
content: 'Created by Team 68: Arianna Cooper, Yoseph Dawit, Funke Olaleye and Suzan Pham';
display: block;
position:relative;
color: white;
}
</style>
"""
pages = {'About':home_page, 'DataFrame':dataframe, 'Sentiment':sentiment, 'WordCloud':top_wordcloud, 'Heatmap':heatmap, 'Prediction':prediction}
with open('style.css') as f:
st.markdown(f'<style>{f.read()}</style>', unsafe_allow_html=True)
st.sidebar.title('App Navigation')
selection = st.sidebar.selectbox('Options', list(pages.keys()))
page = pages[selection]
page.app()
st.markdown(hide_menu, unsafe_allow_html = True)