Spaces:
Running
Running
Sigrid De los Santos
commited on
Commit
·
68427a0
1
Parent(s):
3778f9f
debugging
Browse files- src/main.py +4 -2
src/main.py
CHANGED
@@ -53,8 +53,10 @@ def run_pipeline(topics, openai_api_key=None, tavily_api_key=None):
|
|
53 |
try:
|
54 |
report_md = generate_value_investor_report(all_articles, openai_api_key)
|
55 |
except Exception as e:
|
56 |
-
|
57 |
-
|
|
|
|
|
58 |
|
59 |
# Build insights (aggregated by company)
|
60 |
insights_df = build_company_insights(articles_df)
|
|
|
53 |
try:
|
54 |
report_md = generate_value_investor_report(all_articles, openai_api_key)
|
55 |
except Exception as e:
|
56 |
+
import traceback
|
57 |
+
traceback.print_exc()
|
58 |
+
report_md = f"Error generating report: {e}"
|
59 |
+
|
60 |
|
61 |
# Build insights (aggregated by company)
|
62 |
insights_df = build_company_insights(articles_df)
|