Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -258,7 +258,11 @@ def main():
|
|
| 258 |
status_text.markdown(f"**🔍 Scoring documents... ({i}/{len(candidate_docs)})**")
|
| 259 |
|
| 260 |
# Pair documents with scores
|
| 261 |
-
scored_docs =
|
|
|
|
|
|
|
|
|
|
|
|
|
| 262 |
|
| 263 |
# Clear sentiment model from memory
|
| 264 |
del score_pipe
|
|
|
|
| 258 |
status_text.markdown(f"**🔍 Scoring documents... ({i}/{len(candidate_docs)})**")
|
| 259 |
|
| 260 |
# Pair documents with scores
|
| 261 |
+
scored_docs = [
|
| 262 |
+
{"comment": doc, "sentiment": result.get("score", 1)}
|
| 263 |
+
for doc, result in zip(processed_docs, scored_results)
|
| 264 |
+
]
|
| 265 |
+
|
| 266 |
|
| 267 |
# Clear sentiment model from memory
|
| 268 |
del score_pipe
|