Raiquia commited on
Commit
d4465fe
·
1 Parent(s): a6e70b1
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitignore +54 -0
  2. app.py +7 -6
  3. requirements.txt +22 -17
  4. src/__pycache__/__init__.cpython-311.pyc +0 -0
  5. src/__pycache__/__init__.cpython-312.pyc +0 -0
  6. src/__pycache__/__init__.cpython-313.pyc +0 -0
  7. src/__pycache__/config.cpython-311.pyc +0 -0
  8. src/__pycache__/config.cpython-312.pyc +0 -0
  9. src/__pycache__/config.cpython-313.pyc +0 -0
  10. src/__pycache__/graph.cpython-311.pyc +0 -0
  11. src/__pycache__/graph.cpython-312.pyc +0 -0
  12. src/__pycache__/graph.cpython-313.pyc +0 -0
  13. src/__pycache__/main.cpython-311.pyc +0 -0
  14. src/__pycache__/main.cpython-312.pyc +0 -0
  15. src/__pycache__/main.cpython-313.pyc +0 -0
  16. src/__pycache__/run_controller.cpython-311.pyc +0 -0
  17. src/__pycache__/run_controller.cpython-312.pyc +0 -0
  18. src/agents/__pycache__/__init__.cpython-311.pyc +0 -0
  19. src/agents/__pycache__/__init__.cpython-312.pyc +0 -0
  20. src/agents/__pycache__/__init__.cpython-313.pyc +0 -0
  21. src/agents/__pycache__/critic.cpython-311.pyc +0 -0
  22. src/agents/__pycache__/critic.cpython-312.pyc +0 -0
  23. src/agents/__pycache__/critic.cpython-313.pyc +0 -0
  24. src/agents/__pycache__/idea_generator.cpython-311.pyc +0 -0
  25. src/agents/__pycache__/idea_generator.cpython-312.pyc +0 -0
  26. src/agents/__pycache__/idea_generator.cpython-313.pyc +0 -0
  27. src/agents/__pycache__/orchestrator.cpython-311.pyc +0 -0
  28. src/agents/__pycache__/orchestrator.cpython-312.pyc +0 -0
  29. src/agents/__pycache__/orchestrator.cpython-313.pyc +0 -0
  30. src/agents/__pycache__/pain_point_miner.cpython-311.pyc +0 -0
  31. src/agents/__pycache__/pain_point_miner.cpython-312.pyc +0 -0
  32. src/agents/__pycache__/pain_point_miner.cpython-313.pyc +0 -0
  33. src/agents/__pycache__/pitch_writer.cpython-311.pyc +0 -0
  34. src/agents/__pycache__/pitch_writer.cpython-312.pyc +0 -0
  35. src/agents/__pycache__/pitch_writer.cpython-313.pyc +0 -0
  36. src/agents/__pycache__/scorer.cpython-311.pyc +0 -0
  37. src/agents/__pycache__/scorer.cpython-312.pyc +0 -0
  38. src/agents/__pycache__/scorer.cpython-313.pyc +0 -0
  39. src/agents/pain_point_miner.py +2 -1
  40. src/llm/__pycache__/__init__.cpython-311.pyc +0 -0
  41. src/llm/__pycache__/__init__.cpython-312.pyc +0 -0
  42. src/llm/__pycache__/__init__.cpython-313.pyc +0 -0
  43. src/llm/__pycache__/client.cpython-311.pyc +0 -0
  44. src/llm/__pycache__/client.cpython-312.pyc +0 -0
  45. src/llm/__pycache__/client.cpython-313.pyc +0 -0
  46. src/llm/__pycache__/prompts.cpython-311.pyc +0 -0
  47. src/llm/__pycache__/prompts.cpython-312.pyc +0 -0
  48. src/state/__pycache__/__init__.cpython-311.pyc +0 -0
  49. src/state/__pycache__/__init__.cpython-312.pyc +0 -0
  50. 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
- ui = create_ui()
769
- # Use 127.0.0.1 for local development on Windows for better compatibility
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
- langgraph>=0.2.0
2
- langchain-core>=0.3.0
3
- langchain-openai>=0.2.0
4
- openai>=1.0.0
5
- pydantic>=2.0.0
6
- pydantic-settings>=2.0.0
7
- gradio>=5.0.0
8
- praw>=7.7.0
9
- requests>=2.31.0
10
- python-dotenv>=1.0.0
11
- loguru>=0.7.0
12
- diskcache>=5.6.0
13
- tenacity>=8.2.0
14
- langgraph-checkpoint>=4.0.3
15
- fastapi>=0.136.1
16
- uvicorn>=0.46.0
17
- sse-starlette>=3.4.1
 
 
 
 
 
 
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.reddit_scraper import COMMUNITY_MAP, ScrapedComment, validate_quote
 
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)