Spaces:
Running
Running
Update app.py
Browse files
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 |
|