File size: 682 Bytes
7cb8f2e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# debug_pipeline.py
import os
import sys
import pandas as pd

# Add src to path
sys.path.append(os.path.join(os.path.dirname(__file__), 'src'))
from main import run_pipeline

# Prepare a temporary CSV for topics
csv_path = "test_topics.csv"
pd.DataFrame([{"topic": "Test Startup", "timespan_days": 7}]).to_csv(csv_path, index=False)

# Run pipeline
print("🚀 Running pipeline (local debug mode, no Tavily)...")
html_paths, articles_df, insights_df = run_pipeline(csv_path, "dummy_tavily_key", progress_callback=print)

# Output results
print("\n=== HTML Paths ===")
print(html_paths)

print("\n=== Articles ===")
print(articles_df)

print("\n=== Insights ===")
print(insights_df)