Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,6 +30,7 @@ def process(text):
|
|
| 30 |
if cum_score >= 0.95:
|
| 31 |
break
|
| 32 |
if i > 0:
|
|
|
|
| 33 |
if prev_score / item["score"] > 10:
|
| 34 |
i -= 1
|
| 35 |
break
|
|
@@ -113,10 +114,11 @@ st.markdown(
|
|
| 113 |
}
|
| 114 |
.css-ocqkz7 > div:nth-child(4) button:hover {
|
| 115 |
color: #FF6961;
|
|
|
|
| 116 |
}
|
| 117 |
.css-ocqkz7 > div:nth-child(4) button:active {
|
| 118 |
-
background-color: #
|
| 119 |
-
color: #
|
| 120 |
}
|
| 121 |
</style>""",
|
| 122 |
unsafe_allow_html=True,
|
|
|
|
| 30 |
if cum_score >= 0.95:
|
| 31 |
break
|
| 32 |
if i > 0:
|
| 33 |
+
# Heuristic to drop less relevant categories
|
| 34 |
if prev_score / item["score"] > 10:
|
| 35 |
i -= 1
|
| 36 |
break
|
|
|
|
| 114 |
}
|
| 115 |
.css-ocqkz7 > div:nth-child(4) button:hover {
|
| 116 |
color: #FF6961;
|
| 117 |
+
background-color: #FAA0A0;
|
| 118 |
}
|
| 119 |
.css-ocqkz7 > div:nth-child(4) button:active {
|
| 120 |
+
background-color: #FF6961;
|
| 121 |
+
color: #FAA0A0;
|
| 122 |
}
|
| 123 |
</style>""",
|
| 124 |
unsafe_allow_html=True,
|