Shreyas094 commited on
Commit
f88e213
1 Parent(s): 1f8184f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -494,6 +494,9 @@ def export_news_to_excel():
494
  excel_path = tmp.name
495
  df.to_excel(excel_path, index=False, engine='openpyxl')
496
  print(f"Excel file saved to: {excel_path}")
 
 
 
497
 
498
  return excel_path
499
 
 
494
  excel_path = tmp.name
495
  df.to_excel(excel_path, index=False, engine='openpyxl')
496
  print(f"Excel file saved to: {excel_path}")
497
+ print("Final relevance scores before export:")
498
+ for article in news_database:
499
+ print(f"Title: {article['title']}, Score: {article.get('relevance_score', 'N/A')}")
500
 
501
  return excel_path
502