Skip to content

Commit

Permalink
restructure of dashboard to show stories
Browse files Browse the repository at this point in the history
  • Loading branch information
emilylambert2 committed Jul 23, 2024
1 parent 6fea88c commit ab95e89
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions notebooks/evaluation/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,31 @@
st.set_option('deprecation.showPyplotGlobalUse', False)
st.title('Redbox Chat History Dashboard')

user_freq_tab, traffic_tab, word_freq_tab, ai_word_freq_tab, route_tab, transitions_tab, topic_tab = st.tabs(['User frequency',
'Redbox traffic',
'Word frequency',
'AI word frequency',
'Route analysis',
'Route transitions',
'Topic modelling'])
user_usage_tab, word_freq_tab, route_tab, topic_tab = st.tabs([
'Redbox User Usage',
'Word frequency',
'Route Analysis',
'Topic modelling',
])

cha = ChatHistoryAnalysis()

with user_freq_tab:
with user_usage_tab:
st.pyplot(cha.user_frequency_analysis())

with traffic_tab:
st.pyplot(cha.redbox_traffic_analysis())
st.pyplot(cha.redbox_traffic_by_user())

with word_freq_tab:
st.title('User')
st.pyplot(cha.user_word_frequency_analysis())

with ai_word_freq_tab:
st.title('AI')
st.pyplot(cha.ai_word_frequency_analysis())

with route_tab:
st.pyplot(cha.route_analysis())

with transitions_tab:
st.pyplot(cha.route_transitions())


with topic_tab:
with st.spinner('Fitting topic model...'):
cha.get_topics()
Expand Down

0 comments on commit ab95e89

Please sign in to comment.