Spaces:
Sleeping
Sleeping
Update app.py
Browse files678 unmodified lines67968068168268368468510 unmodified lines696697698699700701702703704705706707708709710711733 unmodified lines144514461447144814491450145198 unmodified lines15501551155215531554155515564 unmodified lines15611562156315641565156615671568156915701571157215731574319 unmodified lines1894189518961897189818991900678 unmodified linesdf_builder_pivot = pd.DataFrame(builder_consolidated)# Define the order of the Trust Driver® categoriestrust_driver_order = ["Stability","Development",10 unmodified lines# "Competence",#]# Convert Trust Driver® column to a categorical type with the specified orderdf_builder_pivot["Trust Driver®"] = pd.Categorical(df_builder_pivot["Trust Driver®"],categories=trust_driver_order,ordered=True,)# Sort the DataFrame by 'Trust Driver®' and '%' in descending order within each 'Trust Driver®'df_builder_pivot = df_builder_pivot.sort_values(by=["Trust Driver®", "%"], ascending=[True, False])733 unmodified lines# Filter df_builder_pivot to include only statements where "Trust Driver" is in qualified_bucket_names_uniquedf_builder_pivot = df_builder_pivot[df_builder_pivot["Trust Driver®"].isin(qualified_bucket_names_unique)]# Remove statements with values below 18%98 unmodified lines### DATAFRAME_PROOF_POINT Structure- **Trust Buckets:** Stability, Development, Relationship, Benefit, Vision, Competence.- **Trust Proof Points:** Statements with percentages.---4 unmodified lines2. **If `DATAFRAME_PROOF_POINT` is present:**- **Display Trust Buckets:**- List all 6 Trust Buckets with their top three Trust Proof Points and percentages.- **Format:** Top scoring statements:- **Bold Bucket Name**- Bullet Point Statement [Percentage]- **Generate Content:**- Create the requested content type (**Annual Report**, **Social Media Post**, **Sales Conversation**, etc.).- **Integrate all Trust Proof Points into the narrative**.---319 unmodified lines- Be specific with the features and examples, including feature names, numbers, brands, facts, and their implications for the driving and ownership experience.Style:- End responses with a question or suggestion to steer to the next topic.- Convey trust proof points naturally."""# Text input box for the user to enter their promptprompt_textbox = gr.Textbox(678 unmodified lines67968068168268368468510 unmodified lines696697698699700701702703704705706707708709710711733 unmodified lines144514461447144814491450145198 unmodified lines15501551155215531554155515564 unmodified lines15611562156315641565156615671568156915701571157215731574319 unmodified lines1894189518961897189818991900678 unmodified linesdf_builder_pivot = pd.DataFrame(builder_consolidated)# Define the order of the Trust Bucket® categoriestrust_driver_order = ["Stability","Development",10 unmodified lines# "Competence",#]# Convert Trust Bucket® column to a categorical type with the specified orderdf_builder_pivot["Trust Bucket®"] = pd.Categorical(df_builder_pivot["Trust Bucket®"],categories=trust_driver_order,ordered=True,)# Sort the DataFrame by 'Trust Bucket®' and '%' in descending order within each 'Trust Bucket®'df_builder_pivot = df_builder_pivot.sort_values(by=["Trust Bucket®", "%"], ascending=[True, False])733 unmodified lines# Filter df_builder_pivot to include only statements where "Trust Driver" is in qualified_bucket_names_uniquedf_builder_pivot = df_builder_pivot[df_builder_pivot["Trust Bucket®"].isin(qualified_bucket_names_unique)]# Remove statements with values below 18%98 unmodified lines### DATAFRAME_PROOF_POINT Structure- **Trust Buckets:** Stability, Development, Relationship, Benefit, Vision, Competence.- **TrustBuilders®:** Statements with percentages.---4 unmodified lines2. **If `DATAFRAME_PROOF_POINT` is present:**- **Display Trust Buckets:**- List all 6 Trust Buckets with their top three TrustBuilders® and percentages.- **Format:** Top scoring statements:- **Bold Bucket Name**- Bullet Point Statement [Percentage]- **Generate Content:**- Create the requested content type (**Annual Report**, **Social Media Post**, **Sales Conversation**, etc.).- **Integrate all TrustBuilders® into the narrative**.---319 unmodified lines- Be specific with the features and examples, including feature names, numbers, brands, facts, and their implications for the driving and ownership experience.Style:- End responses with a question or suggestion to steer to the next topic.- Convey TrustBuilders® naturally."""# Text input box for the user to enter their promptprompt_textbox = gr.Textbox(
app.py+11-11