Spaces:
Runtime error
Runtime error
| # 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) | |