Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
@@ -219,8 +219,6 @@ def create_overall_summary(model_data, selected_categories):
|
|
219 |
for category in sorted_categories:
|
220 |
info = category_completion[category]
|
221 |
category_name = category.split('. ', 1)[1] if '. ' in category else category
|
222 |
-
# remove last word from category_name
|
223 |
-
category_name = ' '.join(category_name.split(' ')[:-1])
|
224 |
|
225 |
# Determine display text and style
|
226 |
if info['is_na']:
|
@@ -993,16 +991,21 @@ css = """
|
|
993 |
}
|
994 |
|
995 |
.category-completion-item {
|
|
|
|
|
996 |
background-color: #f8f9fa;
|
997 |
border-radius: 8px;
|
998 |
padding: 12px;
|
|
|
999 |
}
|
1000 |
|
1001 |
.category-name {
|
|
|
1002 |
font-size: 0.9em;
|
1003 |
font-weight: 500;
|
1004 |
-
margin-bottom: 8px;
|
1005 |
color: #555;
|
|
|
|
|
1006 |
}
|
1007 |
|
1008 |
.completion-bar-container {
|
@@ -1011,6 +1014,7 @@ css = """
|
|
1011 |
border-radius: 12px;
|
1012 |
position: relative;
|
1013 |
overflow: hidden;
|
|
|
1014 |
}
|
1015 |
|
1016 |
.completion-bar {
|
@@ -1029,6 +1033,7 @@ css = """
|
|
1029 |
color: #333;
|
1030 |
}
|
1031 |
|
|
|
1032 |
.dark .category-completion-item {
|
1033 |
background-color: #2a2a2a;
|
1034 |
}
|
@@ -1048,10 +1053,6 @@ css = """
|
|
1048 |
.dark .completion-text {
|
1049 |
color: #fff;
|
1050 |
}
|
1051 |
-
.completion-bar-container.not-selected {
|
1052 |
-
opacity: 0.5;
|
1053 |
-
background-color: #f0f0f0;
|
1054 |
-
}
|
1055 |
|
1056 |
.completion-bar-container.na {
|
1057 |
background-color: #f0f0f0;
|
@@ -1059,7 +1060,7 @@ css = """
|
|
1059 |
|
1060 |
.completion-bar-container.na .completion-bar {
|
1061 |
background-color: #999;
|
1062 |
-
width: 0 !important;
|
1063 |
}
|
1064 |
|
1065 |
.dark .completion-bar-container.na {
|
@@ -1069,33 +1070,6 @@ css = """
|
|
1069 |
.dark .completion-bar-container.na .completion-bar {
|
1070 |
background-color: #666;
|
1071 |
}
|
1072 |
-
|
1073 |
-
.category-completion-item {
|
1074 |
-
background-color: #f8f9fa;
|
1075 |
-
border-radius: 8px;
|
1076 |
-
padding: 12px;
|
1077 |
-
height: 80px;
|
1078 |
-
display: grid;
|
1079 |
-
grid-template-rows: 1fr auto;
|
1080 |
-
gap: 8px;
|
1081 |
-
}
|
1082 |
-
|
1083 |
-
.category-name {
|
1084 |
-
font-size: 0.9em;
|
1085 |
-
font-weight: 500;
|
1086 |
-
color: #555;
|
1087 |
-
align-self: start;
|
1088 |
-
line-height: 1.3;
|
1089 |
-
}
|
1090 |
-
|
1091 |
-
.completion-bar-container {
|
1092 |
-
height: 24px;
|
1093 |
-
background-color: #eee;
|
1094 |
-
border-radius: 12px;
|
1095 |
-
position: relative;
|
1096 |
-
overflow: hidden;
|
1097 |
-
align-self: end;
|
1098 |
-
}
|
1099 |
"""
|
1100 |
|
1101 |
first_model = next(iter(models.values()))
|
|
|
219 |
for category in sorted_categories:
|
220 |
info = category_completion[category]
|
221 |
category_name = category.split('. ', 1)[1] if '. ' in category else category
|
|
|
|
|
222 |
|
223 |
# Determine display text and style
|
224 |
if info['is_na']:
|
|
|
991 |
}
|
992 |
|
993 |
.category-completion-item {
|
994 |
+
display: flex;
|
995 |
+
flex-direction: column;
|
996 |
background-color: #f8f9fa;
|
997 |
border-radius: 8px;
|
998 |
padding: 12px;
|
999 |
+
min-height: 86px; /* Set consistent height */
|
1000 |
}
|
1001 |
|
1002 |
.category-name {
|
1003 |
+
flex: 1;
|
1004 |
font-size: 0.9em;
|
1005 |
font-weight: 500;
|
|
|
1006 |
color: #555;
|
1007 |
+
margin-bottom: 8px;
|
1008 |
+
line-height: 1.3;
|
1009 |
}
|
1010 |
|
1011 |
.completion-bar-container {
|
|
|
1014 |
border-radius: 12px;
|
1015 |
position: relative;
|
1016 |
overflow: hidden;
|
1017 |
+
margin-top: auto; /* Push to bottom */
|
1018 |
}
|
1019 |
|
1020 |
.completion-bar {
|
|
|
1033 |
color: #333;
|
1034 |
}
|
1035 |
|
1036 |
+
/* Dark mode adjustments */
|
1037 |
.dark .category-completion-item {
|
1038 |
background-color: #2a2a2a;
|
1039 |
}
|
|
|
1053 |
.dark .completion-text {
|
1054 |
color: #fff;
|
1055 |
}
|
|
|
|
|
|
|
|
|
1056 |
|
1057 |
.completion-bar-container.na {
|
1058 |
background-color: #f0f0f0;
|
|
|
1060 |
|
1061 |
.completion-bar-container.na .completion-bar {
|
1062 |
background-color: #999;
|
1063 |
+
width: 0 !important;
|
1064 |
}
|
1065 |
|
1066 |
.dark .completion-bar-container.na {
|
|
|
1070 |
.dark .completion-bar-container.na .completion-bar {
|
1071 |
background-color: #666;
|
1072 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1073 |
"""
|
1074 |
|
1075 |
first_model = next(iter(models.values()))
|