Spaces:
Sleeping
Sleeping
Update app.py
Browse files897 unmodified lines8988999009019029039047 unmodified lines91291391491591691791891992092192292339 unmodified lines9639649659669679689691 unmodified line971972973974975976977641 unmodified lines16191620162116221623162412 unmodified lines163716381639164016411642897 unmodified lines# Based on the number of files uploaded, determine the content of each textboxplots = [gr.Markdown("<span style='font-size:20px; font-weight:bold;'>1) Trust Profile</span>",visible=True,),gr.Markdown(7 unmodified linesvisible=True,),gr.Markdown("<span style='font-size:20px; font-weight:bold;'>2) Trust and KPI Drivers</span>",visible=True,),gr.Markdown("This analysis shows you which of the TrustLogic® dimensions are most effective in building more trust and improving your KPIs. "+ "Here we display Trust and NPS, but in the full version you can include up to four KPIs (e.g. CSAT, Consideration, Loyalty). "+ "<br>The Trust Buckets® extending to the right are the more important ones. We show how they over and under-index. "+ "The average driver impact is 16.7% (100% divided by 6 trust dimensions). The higher the % above average, the more important. "+ "That means that you need to ‘fill’ these Trust Buckets® with the right attributes and messages.",39 unmodified lineslogger.debug(f"df_builder_pivot: {df_builder_pivot}")markdown_5 = gr.Markdown("<span style='font-size:20px; font-weight:bold;'>3)TrustBuilders® </span>",visible=True,)1 unmodified line"These are the reasons to trust and recommend. They can be your brand values, features, attributes, programmes and messages. "+ "<br>In the table, use the little arrow in each column to toggle the most to least effective TrustBuilders® to fill each Trust Bucket®. Your focus is only on the Trust Bucket® with the highest driver impact. "#+ "<br>In the second table you see the top scoring TrustBuilders® ordered by Trust Bucket®. "+ "<br>Retain Note: Even if Trust Buckets for Customers and Prospects overlap, the most effective statements are very different. This provides clear guidance for acquisition versus loyalty activities.",visible=True,)641 unmodified linesreturn selected_dataset_aidef create_trust_score_1():score = 8max_score = 10fig, ax = plt.subplots(figsize=(2, 2), subplot_kw=dict(aspect="equal"))12 unmodified linesreturn figdef create_trust_score_2():score = 7.5max_score = 10fig, ax = plt.subplots(figsize=(2, 2), subplot_kw=dict(aspect="equal"))897 unmodified lines8988999009019029039047 unmodified lines91291391491591691791891992092192292339 unmodified lines9639649659669679689691 unmodified line971972973974975976977641 unmodified lines16191620162116221623162416251626162716281629163016311632163312 unmodified lines16461647164816491650165116521653165416551656165716581659897 unmodified lines# Based on the number of files uploaded, determine the content of each textboxplots = [gr.Markdown("<span style='font-size:20px; font-weight:bold;'>2) Trust Profile</span>",visible=True,),gr.Markdown(7 unmodified linesvisible=True,),gr.Markdown("<span style='font-size:20px; font-weight:bold;'>3) Trust and KPI Drivers</span>",visible=True,),gr.Markdown("This analysis shows you which of the Trust Buckets® are most effective in building more trust and improving your KPIs."+ "Here we display Trust and NPS, but in the full version you can include up to four KPIs (e.g.CSAT, Consideration, Loyalty)."+ "<br>The Trust Buckets® extending to the right are the more important ones. We show how they over and under-index. "+ "The average driver impact is 16.7% (100% divided by 6 trust dimensions). The higher the % above average, the more important. "+ "That means that you need to ‘fill’ these Trust Buckets® with the right attributes and messages.",39 unmodified lineslogger.debug(f"df_builder_pivot: {df_builder_pivot}")markdown_5 = gr.Markdown("<span style='font-size:20px; font-weight:bold;'>4)TrustBuilders® </span>",visible=True,)1 unmodified line"These are the reasons to trust and recommend. They can be your brand values, features, attributes, programmes and messages. "+ "<br>In the table, use the little arrow in each column to toggle the most to least effective TrustBuilders® to fill each Trust Bucket®. Your focus is only on the Trust Bucket® with the highest driver impact. "#+ "<br>In the second table you see the top scoring TrustBuilders® ordered by Trust Bucket®. "+ "<brNote: Even if Trust Buckets® for Customers and Prospects overlap, the most effective statements are very different. This provides clear guidance for acquisition versus loyalty activities.",visible=True,)641 unmodified linesreturn selected_dataset_aidef create_trust_score_1():gr.Markdown("<span style='font-size:20px; font-weight:bold;'>1) Trust Score </span>",visible=True,)gr.Markdown("This analysis shows you the average Trust Score that is given to you by the respondents.",visible=True,)score = 8max_score = 10fig, ax = plt.subplots(figsize=(2, 2), subplot_kw=dict(aspect="equal"))12 unmodified linesreturn figdef create_trust_score_2():gr.Markdown("<span style='font-size:20px; font-weight:bold;'>1) Trust Score </span>",visible=True,)gr.Markdown("This analysis shows you the average Trust Score that is given to you by the respondents.",visible=True,)score = 7.5max_score = 10fig, ax = plt.subplots(figsize=(2, 2), subplot_kw=dict(aspect="equal"))
app.py+23-6