frankai98 commited on
Commit
c746718
·
verified ·
1 Parent(s): f62daa9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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 = list(zip(processed_docs, [result.get("score", 1) for result in scored_results]))
 
 
 
 
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