Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -653,10 +653,7 @@ def analyze_excel_single(file_path):
|
|
| 653 |
"Competence": results_df_builder["Competence"].round(0).astype(int),
|
| 654 |
}
|
| 655 |
|
| 656 |
-
df_builder = pd.DataFrame(combined_data)
|
| 657 |
-
lambda _: f"background-color: {bucket_colors.get(_, '')}",
|
| 658 |
-
subset=list(bucket_colors.keys())
|
| 659 |
-
)
|
| 660 |
|
| 661 |
|
| 662 |
|
|
@@ -688,10 +685,6 @@ def analyze_excel_single(file_path):
|
|
| 688 |
"%": percentages,
|
| 689 |
}
|
| 690 |
|
| 691 |
-
df_builder_pivot = pd.DataFrame(builder_consolidated).style.applymap(
|
| 692 |
-
lambda _: f"background-color: {bucket_colors.get(_, '')}",
|
| 693 |
-
subset=list(bucket_colors.keys())
|
| 694 |
-
)
|
| 695 |
|
| 696 |
# Define the order of the Trust Bucket® categories
|
| 697 |
trust_driver_order = [
|
|
@@ -738,7 +731,7 @@ def analyze_excel_single(file_path):
|
|
| 738 |
if consideration_present:
|
| 739 |
os.remove(csv_output_path_consideration)
|
| 740 |
if satisfaction_present:
|
| 741 |
-
os.remove(
|
| 742 |
if trustbuilder_present:
|
| 743 |
os.remove(csv_output_path_trustbuilder)
|
| 744 |
os.remove(text_output_path)
|
|
@@ -986,7 +979,7 @@ def variable_outputs(file_inputs):
|
|
| 986 |
visible=True,
|
| 987 |
)
|
| 988 |
|
| 989 |
-
table_builder_2 = gr.
|
| 990 |
value=df_builder_pivot,
|
| 991 |
headers=list(df_builder_pivot.columns),
|
| 992 |
interactive=False,
|
|
|
|
| 653 |
"Competence": results_df_builder["Competence"].round(0).astype(int),
|
| 654 |
}
|
| 655 |
|
| 656 |
+
df_builder = pd.DataFrame(combined_data)
|
|
|
|
|
|
|
|
|
|
| 657 |
|
| 658 |
|
| 659 |
|
|
|
|
| 685 |
"%": percentages,
|
| 686 |
}
|
| 687 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 688 |
|
| 689 |
# Define the order of the Trust Bucket® categories
|
| 690 |
trust_driver_order = [
|
|
|
|
| 731 |
if consideration_present:
|
| 732 |
os.remove(csv_output_path_consideration)
|
| 733 |
if satisfaction_present:
|
| 734 |
+
os.remove(csv_output_pa
|
| 735 |
if trustbuilder_present:
|
| 736 |
os.remove(csv_output_path_trustbuilder)
|
| 737 |
os.remove(text_output_path)
|
|
|
|
| 979 |
visible=True,
|
| 980 |
)
|
| 981 |
|
| 982 |
+
table_builder_2 = gr.HTML(
|
| 983 |
value=df_builder_pivot,
|
| 984 |
headers=list(df_builder_pivot.columns),
|
| 985 |
interactive=False,
|