some fix
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitignore +54 -0
- app.py +7 -6
- requirements.txt +22 -17
- src/__pycache__/__init__.cpython-311.pyc +0 -0
- src/__pycache__/__init__.cpython-312.pyc +0 -0
- src/__pycache__/__init__.cpython-313.pyc +0 -0
- src/__pycache__/config.cpython-311.pyc +0 -0
- src/__pycache__/config.cpython-312.pyc +0 -0
- src/__pycache__/config.cpython-313.pyc +0 -0
- src/__pycache__/graph.cpython-311.pyc +0 -0
- src/__pycache__/graph.cpython-312.pyc +0 -0
- src/__pycache__/graph.cpython-313.pyc +0 -0
- src/__pycache__/main.cpython-311.pyc +0 -0
- src/__pycache__/main.cpython-312.pyc +0 -0
- src/__pycache__/main.cpython-313.pyc +0 -0
- src/__pycache__/run_controller.cpython-311.pyc +0 -0
- src/__pycache__/run_controller.cpython-312.pyc +0 -0
- src/agents/__pycache__/__init__.cpython-311.pyc +0 -0
- src/agents/__pycache__/__init__.cpython-312.pyc +0 -0
- src/agents/__pycache__/__init__.cpython-313.pyc +0 -0
- src/agents/__pycache__/critic.cpython-311.pyc +0 -0
- src/agents/__pycache__/critic.cpython-312.pyc +0 -0
- src/agents/__pycache__/critic.cpython-313.pyc +0 -0
- src/agents/__pycache__/idea_generator.cpython-311.pyc +0 -0
- src/agents/__pycache__/idea_generator.cpython-312.pyc +0 -0
- src/agents/__pycache__/idea_generator.cpython-313.pyc +0 -0
- src/agents/__pycache__/orchestrator.cpython-311.pyc +0 -0
- src/agents/__pycache__/orchestrator.cpython-312.pyc +0 -0
- src/agents/__pycache__/orchestrator.cpython-313.pyc +0 -0
- src/agents/__pycache__/pain_point_miner.cpython-311.pyc +0 -0
- src/agents/__pycache__/pain_point_miner.cpython-312.pyc +0 -0
- src/agents/__pycache__/pain_point_miner.cpython-313.pyc +0 -0
- src/agents/__pycache__/pitch_writer.cpython-311.pyc +0 -0
- src/agents/__pycache__/pitch_writer.cpython-312.pyc +0 -0
- src/agents/__pycache__/pitch_writer.cpython-313.pyc +0 -0
- src/agents/__pycache__/scorer.cpython-311.pyc +0 -0
- src/agents/__pycache__/scorer.cpython-312.pyc +0 -0
- src/agents/__pycache__/scorer.cpython-313.pyc +0 -0
- src/agents/pain_point_miner.py +2 -1
- src/llm/__pycache__/__init__.cpython-311.pyc +0 -0
- src/llm/__pycache__/__init__.cpython-312.pyc +0 -0
- src/llm/__pycache__/__init__.cpython-313.pyc +0 -0
- src/llm/__pycache__/client.cpython-311.pyc +0 -0
- src/llm/__pycache__/client.cpython-312.pyc +0 -0
- src/llm/__pycache__/client.cpython-313.pyc +0 -0
- src/llm/__pycache__/prompts.cpython-311.pyc +0 -0
- src/llm/__pycache__/prompts.cpython-312.pyc +0 -0
- src/state/__pycache__/__init__.cpython-311.pyc +0 -0
- src/state/__pycache__/__init__.cpython-312.pyc +0 -0
- src/state/__pycache__/__init__.cpython-313.pyc +0 -0
.gitignore
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Python
|
| 2 |
+
__pycache__/
|
| 3 |
+
*.py[cod]
|
| 4 |
+
*$py.class
|
| 5 |
+
*.so
|
| 6 |
+
.Python
|
| 7 |
+
|
| 8 |
+
# Virtual environments
|
| 9 |
+
.venv/
|
| 10 |
+
venv/
|
| 11 |
+
ENV/
|
| 12 |
+
env/
|
| 13 |
+
|
| 14 |
+
# Testing
|
| 15 |
+
.pytest_cache/
|
| 16 |
+
.coverage
|
| 17 |
+
htmlcov/
|
| 18 |
+
.tox/
|
| 19 |
+
|
| 20 |
+
# Type checking
|
| 21 |
+
.mypy_cache/
|
| 22 |
+
.dmypy.json
|
| 23 |
+
dmypy.json
|
| 24 |
+
|
| 25 |
+
# Linting
|
| 26 |
+
.ruff_cache/
|
| 27 |
+
|
| 28 |
+
# IDEs
|
| 29 |
+
.vscode/
|
| 30 |
+
.idea/
|
| 31 |
+
*.swp
|
| 32 |
+
*.swo
|
| 33 |
+
*~
|
| 34 |
+
|
| 35 |
+
# Environment variables
|
| 36 |
+
.env
|
| 37 |
+
.env.local
|
| 38 |
+
|
| 39 |
+
# Logs
|
| 40 |
+
*.log
|
| 41 |
+
|
| 42 |
+
# Test artifacts
|
| 43 |
+
test_*.json
|
| 44 |
+
test_*.db
|
| 45 |
+
*.sqlite
|
| 46 |
+
|
| 47 |
+
# OS
|
| 48 |
+
.DS_Store
|
| 49 |
+
Thumbs.db
|
| 50 |
+
|
| 51 |
+
# Build artifacts
|
| 52 |
+
dist/
|
| 53 |
+
build/
|
| 54 |
+
*.egg-info/
|
app.py
CHANGED
|
@@ -763,13 +763,14 @@ def create_ui() -> gr.Blocks:
|
|
| 763 |
return app
|
| 764 |
|
| 765 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 766 |
def main() -> None:
|
| 767 |
-
"""Launch the Gradio UI."""
|
| 768 |
-
|
| 769 |
-
|
| 770 |
-
host = "127.0.0.1" if settings.gradio_host == "0.0.0.0" else settings.gradio_host
|
| 771 |
-
ui.launch(
|
| 772 |
-
server_name=host,
|
| 773 |
server_port=settings.gradio_port,
|
| 774 |
share=False,
|
| 775 |
theme=gr.themes.Soft(),
|
|
|
|
| 763 |
return app
|
| 764 |
|
| 765 |
|
| 766 |
+
# Create the demo for HuggingFace Spaces
|
| 767 |
+
demo = create_ui()
|
| 768 |
+
|
| 769 |
+
|
| 770 |
def main() -> None:
|
| 771 |
+
"""Launch the Gradio UI locally."""
|
| 772 |
+
demo.launch(
|
| 773 |
+
server_name=settings.gradio_host,
|
|
|
|
|
|
|
|
|
|
| 774 |
server_port=settings.gradio_port,
|
| 775 |
share=False,
|
| 776 |
theme=gr.themes.Soft(),
|
requirements.txt
CHANGED
|
@@ -1,17 +1,22 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
langchain-
|
| 4 |
-
openai>=1.0.0
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# LangGraph and LangChain - compatible ranges
|
| 2 |
+
langgraph>=1.1.0,<2.0.0
|
| 3 |
+
langchain-core>=1.3.0,<2.0.0
|
| 4 |
+
langchain-openai>=1.2.0,<2.0.0
|
| 5 |
+
langgraph-checkpoint>=4.0.0,<5.0.0
|
| 6 |
+
|
| 7 |
+
# OpenAI - transitive dependency via langchain-openai
|
| 8 |
+
openai>=2.26.0,<3.0.0
|
| 9 |
+
|
| 10 |
+
# Pydantic
|
| 11 |
+
pydantic>=2.10.0,<3.0.0
|
| 12 |
+
pydantic-settings>=2.7.0,<3.0.0
|
| 13 |
+
|
| 14 |
+
# Gradio - match SDK version in README.md
|
| 15 |
+
gradio==6.14.0
|
| 16 |
+
|
| 17 |
+
# Utilities
|
| 18 |
+
requests>=2.32.0,<3.0.0
|
| 19 |
+
diskcache>=5.6.0,<6.0.0
|
| 20 |
+
|
| 21 |
+
# Note: praw (Reddit API) removed - reddit_scraper.py is not used in the pipeline
|
| 22 |
+
# ScrapedComment dataclass is still imported by other scrapers but doesn't require praw
|
src/__pycache__/__init__.cpython-311.pyc
DELETED
|
Binary file (208 Bytes)
|
|
|
src/__pycache__/__init__.cpython-312.pyc
DELETED
|
Binary file (195 Bytes)
|
|
|
src/__pycache__/__init__.cpython-313.pyc
DELETED
|
Binary file (199 Bytes)
|
|
|
src/__pycache__/config.cpython-311.pyc
DELETED
|
Binary file (6.61 kB)
|
|
|
src/__pycache__/config.cpython-312.pyc
DELETED
|
Binary file (5.85 kB)
|
|
|
src/__pycache__/config.cpython-313.pyc
DELETED
|
Binary file (5.76 kB)
|
|
|
src/__pycache__/graph.cpython-311.pyc
DELETED
|
Binary file (3.55 kB)
|
|
|
src/__pycache__/graph.cpython-312.pyc
DELETED
|
Binary file (3.09 kB)
|
|
|
src/__pycache__/graph.cpython-313.pyc
DELETED
|
Binary file (3.02 kB)
|
|
|
src/__pycache__/main.cpython-311.pyc
DELETED
|
Binary file (6.82 kB)
|
|
|
src/__pycache__/main.cpython-312.pyc
DELETED
|
Binary file (6.17 kB)
|
|
|
src/__pycache__/main.cpython-313.pyc
DELETED
|
Binary file (6.15 kB)
|
|
|
src/__pycache__/run_controller.cpython-311.pyc
DELETED
|
Binary file (7.38 kB)
|
|
|
src/__pycache__/run_controller.cpython-312.pyc
DELETED
|
Binary file (6.54 kB)
|
|
|
src/agents/__pycache__/__init__.cpython-311.pyc
DELETED
|
Binary file (182 Bytes)
|
|
|
src/agents/__pycache__/__init__.cpython-312.pyc
DELETED
|
Binary file (167 Bytes)
|
|
|
src/agents/__pycache__/__init__.cpython-313.pyc
DELETED
|
Binary file (171 Bytes)
|
|
|
src/agents/__pycache__/critic.cpython-311.pyc
DELETED
|
Binary file (9.44 kB)
|
|
|
src/agents/__pycache__/critic.cpython-312.pyc
DELETED
|
Binary file (8.62 kB)
|
|
|
src/agents/__pycache__/critic.cpython-313.pyc
DELETED
|
Binary file (8.71 kB)
|
|
|
src/agents/__pycache__/idea_generator.cpython-311.pyc
DELETED
|
Binary file (21 kB)
|
|
|
src/agents/__pycache__/idea_generator.cpython-312.pyc
DELETED
|
Binary file (18.4 kB)
|
|
|
src/agents/__pycache__/idea_generator.cpython-313.pyc
DELETED
|
Binary file (18.5 kB)
|
|
|
src/agents/__pycache__/orchestrator.cpython-311.pyc
DELETED
|
Binary file (22.9 kB)
|
|
|
src/agents/__pycache__/orchestrator.cpython-312.pyc
DELETED
|
Binary file (21.5 kB)
|
|
|
src/agents/__pycache__/orchestrator.cpython-313.pyc
DELETED
|
Binary file (21.5 kB)
|
|
|
src/agents/__pycache__/pain_point_miner.cpython-311.pyc
DELETED
|
Binary file (21.1 kB)
|
|
|
src/agents/__pycache__/pain_point_miner.cpython-312.pyc
DELETED
|
Binary file (18.6 kB)
|
|
|
src/agents/__pycache__/pain_point_miner.cpython-313.pyc
DELETED
|
Binary file (18.7 kB)
|
|
|
src/agents/__pycache__/pitch_writer.cpython-311.pyc
DELETED
|
Binary file (27.8 kB)
|
|
|
src/agents/__pycache__/pitch_writer.cpython-312.pyc
DELETED
|
Binary file (24.8 kB)
|
|
|
src/agents/__pycache__/pitch_writer.cpython-313.pyc
DELETED
|
Binary file (25.2 kB)
|
|
|
src/agents/__pycache__/scorer.cpython-311.pyc
DELETED
|
Binary file (11 kB)
|
|
|
src/agents/__pycache__/scorer.cpython-312.pyc
DELETED
|
Binary file (9.52 kB)
|
|
|
src/agents/__pycache__/scorer.cpython-313.pyc
DELETED
|
Binary file (9.59 kB)
|
|
|
src/agents/pain_point_miner.py
CHANGED
|
@@ -22,7 +22,8 @@ from src.config import settings
|
|
| 22 |
from src.llm.client import coerce_rubric_bools, coerce_yes_no, extract_json, get_llm
|
| 23 |
from src.llm.prompts import get_prompt
|
| 24 |
from src.state.schema import DataSource, PainPoint, PainPointRubric, PipelineStage, VentureForgeState
|
| 25 |
-
from src.tools.
|
|
|
|
| 26 |
from src.tools.tavily_fallback import search_communities
|
| 27 |
from src.tools.hackernews_scraper import scrape_for_domain as hn_scrape_for_domain
|
| 28 |
from src.tools.producthunt_scraper import scrape_for_domain as ph_scrape_for_domain
|
|
|
|
| 22 |
from src.llm.client import coerce_rubric_bools, coerce_yes_no, extract_json, get_llm
|
| 23 |
from src.llm.prompts import get_prompt
|
| 24 |
from src.state.schema import DataSource, PainPoint, PainPointRubric, PipelineStage, VentureForgeState
|
| 25 |
+
from src.tools.types import ScrapedComment
|
| 26 |
+
from src.tools.reddit_scraper import COMMUNITY_MAP, validate_quote
|
| 27 |
from src.tools.tavily_fallback import search_communities
|
| 28 |
from src.tools.hackernews_scraper import scrape_for_domain as hn_scrape_for_domain
|
| 29 |
from src.tools.producthunt_scraper import scrape_for_domain as ph_scrape_for_domain
|
src/llm/__pycache__/__init__.cpython-311.pyc
DELETED
|
Binary file (176 Bytes)
|
|
|
src/llm/__pycache__/__init__.cpython-312.pyc
DELETED
|
Binary file (161 Bytes)
|
|
|
src/llm/__pycache__/__init__.cpython-313.pyc
DELETED
|
Binary file (165 Bytes)
|
|
|
src/llm/__pycache__/client.cpython-311.pyc
DELETED
|
Binary file (7.75 kB)
|
|
|
src/llm/__pycache__/client.cpython-312.pyc
DELETED
|
Binary file (7.03 kB)
|
|
|
src/llm/__pycache__/client.cpython-313.pyc
DELETED
|
Binary file (7 kB)
|
|
|
src/llm/__pycache__/prompts.cpython-311.pyc
DELETED
|
Binary file (3.57 kB)
|
|
|
src/llm/__pycache__/prompts.cpython-312.pyc
DELETED
|
Binary file (3.15 kB)
|
|
|
src/state/__pycache__/__init__.cpython-311.pyc
DELETED
|
Binary file (180 Bytes)
|
|
|
src/state/__pycache__/__init__.cpython-312.pyc
DELETED
|
Binary file (165 Bytes)
|
|
|
src/state/__pycache__/__init__.cpython-313.pyc
DELETED
|
Binary file (169 Bytes)
|
|
|