diff --git a/NHANES_dash.py b/NHANES_dash.py index d0e0ed5..197d212 100644 --- a/NHANES_dash.py +++ b/NHANES_dash.py @@ -29,10 +29,10 @@ # clientid = config.reddit_reddit_clientid # clientsecret = config.reddit_clientsecret -username = st.secrets["reddit_username"] -password = st.secrets["reddit_password"] -clientid = st.secrets["reddit_clientid"] -clientsecret = st.secrets["reddit_clientsecret"] +# username = st.secrets["reddit_username"] +# password = st.secrets["reddit_password"] +# clientid = st.secrets["reddit_clientid"] +# clientsecret = st.secrets["reddit_clientsecret"] #################Twitter_AUTH########################## # API_Key = config.twitter_API_Key @@ -41,11 +41,11 @@ # Access_Token = config.twitter_Access_Token # Access_Token_Secret = config.twitter_Access_Token_Secret -API_Key = st.secrets["twitter_API_Key"] -API_Key_Secret = st.secrets["twitter_API_Key_Secret"] -Bearer_Token = st.secrets["twitter_Bearer_Token"] -Access_Token = st.secrets["twitter_Access_Token"] -Access_Token_Secret = st.secrets["twitter_Access_Token_Secret"] +# API_Key = st.secrets["twitter_API_Key"] +# API_Key_Secret = st.secrets["twitter_API_Key_Secret"] +# Bearer_Token = st.secrets["twitter_Bearer_Token"] +# Access_Token = st.secrets["twitter_Access_Token"] +# Access_Token_Secret = st.secrets["twitter_Access_Token_Secret"] ###################Database_AUTH######################### # host= config.host @@ -54,29 +54,29 @@ # port = config.port # database = config.database -host= st.secrets["host"] -user= st.secrets["user"] -db_password= st.secrets["password"] -port = st.secrets["port"] -database = st.secrets["database"] +# host= st.secrets["host"] +# user= st.secrets["user"] +# db_password= st.secrets["password"] +# port = st.secrets["port"] +# database = st.secrets["database"] ################################################################################################################ -#Twitter API Authentication -consumerKey = API_Key -consumerSecret = API_Key_Secret -accessToken = Access_Token -accessTokenSecret = Access_Token_Secret -auth = tweepy.OAuthHandler(consumerKey, consumerSecret) -auth.set_access_token(accessToken, accessTokenSecret) -api = tweepy.API(auth,wait_on_rate_limit=True) - -#Reddit API Authentication -reddit = praw.Reddit(client_id=clientid, - client_secret=clientsecret, - password=password, - user_agent='Reddit search data extractor by /u/' + username + '', - username=username) +# #Twitter API Authentication +# consumerKey = API_Key +# consumerSecret = API_Key_Secret +# accessToken = Access_Token +# accessTokenSecret = Access_Token_Secret +# auth = tweepy.OAuthHandler(consumerKey, consumerSecret) +# auth.set_access_token(accessToken, accessTokenSecret) +# api = tweepy.API(auth,wait_on_rate_limit=True) + +# #Reddit API Authentication +# reddit = praw.Reddit(client_id=clientid, +# client_secret=clientsecret, +# password=password, +# user_agent='Reddit search data extractor by /u/' + username + '', +# username=username) ################################################################################################################ import pickle as pkle @@ -116,7 +116,7 @@ with col2: st.markdown("
Transformative Research to Address Health Disparities and Advance Health Equity at Minority Serving Institutions
", unsafe_allow_html=True) - st.markdown("YouTube-comments-Analyzer is a tool to analyze audience sentiment, " + "perspective, topics, and engagement of YouTube video comments. It collects and preprocesses comments, performs " + "sentiment analysis and topic modeling, and visualizes findings through an interactive dashboard. Beneficial for " + "content creators, marketers, and researchers.
", unsafe_allow_html=True) + st.markdown("Video Summery Stats
', unsafe_allow_html=True) + keywords = ["Sentiment-Analysis"] # this is going to be our keyword + + + + st.markdown("---") + ###################################################################### + + +#######################################################*******************************************************#################################################################### + +elif choose == "Topic Search": + #Add a file uploader to allow users to upload their project plan file + st.markdown(""" """, unsafe_allow_html=True) + st.markdown('Topic Search
', unsafe_allow_html=True) + #creating a list of the survey cycles that we are going to be collecting the data + + + st.markdown("---") + ###################################################################### + +############################################################*******************************************######################################################## + +elif choose == "Sentiment Analysis": + st.markdown(""" """, unsafe_allow_html=True) + st.markdown('Sentiment Analysis
', unsafe_allow_html=True) + + st.markdown("---") + ###################################################################### + +#######################################################*******************************************############################################################### + + +elif choose == "WordCloud": + st.markdown(""" """, unsafe_allow_html=True) + st.markdown('WordCloud
', unsafe_allow_html=True) + + st.markdown("---") + ###################################################################### \ No newline at end of file