Sdm0 commited on
Commit
af62689
·
verified ·
1 Parent(s): bee3fd1

Deploy 07fcb0d7

Browse files
Files changed (2) hide show
  1. .github/workflows/deploy-hf.yml +0 -1
  2. README.md +49 -0
.github/workflows/deploy-hf.yml CHANGED
@@ -44,7 +44,6 @@ jobs:
44
  '**/__pycache__', '**/*.pyc',
45
  '.env', '.venv',
46
  '.git', '.gitignore', '.github',
47
- '*.md',
48
  ],
49
  commit_message=f'Deploy {os.environ.get(\"GITHUB_SHA\", \"?\")[:8]}',
50
  )
 
44
  '**/__pycache__', '**/*.pyc',
45
  '.env', '.venv',
46
  '.git', '.gitignore', '.github',
 
47
  ],
48
  commit_message=f'Deploy {os.environ.get(\"GITHUB_SHA\", \"?\")[:8]}',
49
  )
README.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: OpenCodeReview
3
+ emoji: 🔍
4
+ colorFrom: indigo
5
+ colorTo: purple
6
+ sdk: docker
7
+ app_file: app.py
8
+ pinned: false
9
+ ---
10
+
11
+ # OpenCodeReview
12
+
13
+ AI-powered PR review with human-in-the-loop approval.
14
+
15
+ Reviews pull requests for **correctness**, **security**, and **test coverage** using LLMs (Gemini/Groq), then presents findings for human approval before posting comments.
16
+
17
+ ## Stack
18
+
19
+ - **Frontend**: Gradio web UI
20
+ - **Backend**: LangGraph pipeline with structured output
21
+ - **LLMs**: Google Gemini (primary) → Groq (fallback)
22
+ - **Tracing**: LangSmith & Langfuse
23
+
24
+ ## Usage
25
+
26
+ ### Web UI (default)
27
+
28
+ Open the Space and enter a GitHub repository + PR number.
29
+
30
+ ### CLI
31
+
32
+ ```bash
33
+ # Smoke test with demo data
34
+ python main.py review --smoke
35
+
36
+ # Review a real PR
37
+ python main.py review --repo org/repo --pr 42
38
+ ```
39
+
40
+ ### Environment Variables
41
+
42
+ | Variable | Required | Description |
43
+ |---|---|---|
44
+ | `GEMINI_API_KEY` | Yes (primary) | Google Gemini API key |
45
+ | `GROQ_API_KEY` | Yes (fallback) | Groq API key |
46
+ | `GITHUB_TOKEN` | Yes | GitHub token for fetching PRs |
47
+ | `LANGCHAIN_API_KEY` | No | LangSmith tracing |
48
+ | `LANGFUSE_PUBLIC_KEY` | No | Langfuse tracing |
49
+ | `LANGFUSE_SECRET_KEY` | No | Langfuse tracing |