bhargavirengarajan21 commited on
Commit Β·
03c00e0
1
Parent(s): 10a4d72
Fix the app.py error
Browse files
README.md
CHANGED
|
@@ -3,9 +3,7 @@ title: git-commit-at
|
|
| 3 |
emoji: π€
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: indigo
|
| 6 |
-
sdk:
|
| 7 |
-
sdk_version: "6.17.3"
|
| 8 |
-
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
|
|
|
| 3 |
emoji: π€
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: indigo
|
| 6 |
+
sdk: static
|
|
|
|
|
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
app.py
CHANGED
|
@@ -1,24 +1,24 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
INSTALL_CMD = "npm install -g git
|
| 4 |
-
NPM_URL = "https://www.npmjs.com/package/git
|
| 5 |
-
GITHUB_URL = "https://github.com/bhargavirengarajan21/git
|
| 6 |
DEMO_URL = "#" # TBH
|
| 7 |
|
| 8 |
ABOUT_MD = """
|
| 9 |
-
# git
|
| 10 |
|
| 11 |
**AI-powered git commit message generator** β local, private, no API key needed.
|
| 12 |
|
| 13 |
-
`git
|
| 14 |
using a locally-running AI model (Ollama). Pick one, customize it, and commit β all from
|
| 15 |
the terminal.
|
| 16 |
|
| 17 |
---
|
| 18 |
|
| 19 |
-
## Why git
|
| 20 |
|
| 21 |
-
| | git
|
| 22 |
|---|---|---|---|
|
| 23 |
| **Private** | β
100% local | β
| β sends code to cloud |
|
| 24 |
| **No API key** | β
| β
| β requires subscription |
|
|
@@ -31,7 +31,7 @@ the terminal.
|
|
| 31 |
## Install
|
| 32 |
|
| 33 |
```bash
|
| 34 |
-
npm install -g git
|
| 35 |
```
|
| 36 |
|
| 37 |
Requires: **Docker** (all AI/backend services run in containers β no extra setup).
|
|
@@ -45,7 +45,7 @@ Requires: **Docker** (all AI/backend services run in containers β no extra set
|
|
| 45 |
git add .
|
| 46 |
|
| 47 |
# 2. Run the tool
|
| 48 |
-
git
|
| 49 |
|
| 50 |
# 3. First time: register/login at http://localhost:7860
|
| 51 |
# 4. Pick a suggested commit message
|
|
@@ -93,14 +93,14 @@ QUICKSTART_MD = """
|
|
| 93 |
|
| 94 |
```bash
|
| 95 |
# Install
|
| 96 |
-
npm install -g git
|
| 97 |
|
| 98 |
# Go to any git repo
|
| 99 |
cd your-project
|
| 100 |
git add .
|
| 101 |
|
| 102 |
# Generate commit message
|
| 103 |
-
git
|
| 104 |
```
|
| 105 |
|
| 106 |
The first run starts all Docker services and opens the login UI at `http://localhost:7860`.
|
|
@@ -111,7 +111,7 @@ HOW_IT_WORKS_MD = """
|
|
| 111 |
## How it works
|
| 112 |
|
| 113 |
```
|
| 114 |
-
git
|
| 115 |
β
|
| 116 |
βββ Checks Docker services
|
| 117 |
β βββ Ollama (AI model, port 11434)
|
|
@@ -130,13 +130,13 @@ git-commit-at (CLI)
|
|
| 130 |
```
|
| 131 |
"""
|
| 132 |
|
| 133 |
-
with gr.Blocks(title="git
|
| 134 |
with gr.Row():
|
| 135 |
with gr.Column(scale=2):
|
| 136 |
gr.Markdown(ABOUT_MD)
|
| 137 |
with gr.Column(scale=1):
|
| 138 |
gr.Markdown("## Install now")
|
| 139 |
-
gr.Code(value=INSTALL_CMD, language="
|
| 140 |
gr.Markdown(f"[View on npm]({NPM_URL}) Β· [GitHub]({GITHUB_URL})")
|
| 141 |
gr.Markdown("---")
|
| 142 |
gr.Markdown(QUICKSTART_MD)
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
INSTALL_CMD = "npm install -g git commit-at"
|
| 4 |
+
NPM_URL = "https://www.npmjs.com/package/git commit-at"
|
| 5 |
+
GITHUB_URL = "https://github.com/bhargavirengarajan21/git commit-at"
|
| 6 |
DEMO_URL = "#" # TBH
|
| 7 |
|
| 8 |
ABOUT_MD = """
|
| 9 |
+
# git commit-at
|
| 10 |
|
| 11 |
**AI-powered git commit message generator** β local, private, no API key needed.
|
| 12 |
|
| 13 |
+
`git commit-at` analyzes your staged changes and suggests 3 conventional commit messages
|
| 14 |
using a locally-running AI model (Ollama). Pick one, customize it, and commit β all from
|
| 15 |
the terminal.
|
| 16 |
|
| 17 |
---
|
| 18 |
|
| 19 |
+
## Why git commit-at?
|
| 20 |
|
| 21 |
+
| | git commit-at | Manual commits | Cloud AI tools |
|
| 22 |
|---|---|---|---|
|
| 23 |
| **Private** | β
100% local | β
| β sends code to cloud |
|
| 24 |
| **No API key** | β
| β
| β requires subscription |
|
|
|
|
| 31 |
## Install
|
| 32 |
|
| 33 |
```bash
|
| 34 |
+
npm install -g git commit-at
|
| 35 |
```
|
| 36 |
|
| 37 |
Requires: **Docker** (all AI/backend services run in containers β no extra setup).
|
|
|
|
| 45 |
git add .
|
| 46 |
|
| 47 |
# 2. Run the tool
|
| 48 |
+
git commit-at
|
| 49 |
|
| 50 |
# 3. First time: register/login at http://localhost:7860
|
| 51 |
# 4. Pick a suggested commit message
|
|
|
|
| 93 |
|
| 94 |
```bash
|
| 95 |
# Install
|
| 96 |
+
npm install -g git commit-at
|
| 97 |
|
| 98 |
# Go to any git repo
|
| 99 |
cd your-project
|
| 100 |
git add .
|
| 101 |
|
| 102 |
# Generate commit message
|
| 103 |
+
git commit-at
|
| 104 |
```
|
| 105 |
|
| 106 |
The first run starts all Docker services and opens the login UI at `http://localhost:7860`.
|
|
|
|
| 111 |
## How it works
|
| 112 |
|
| 113 |
```
|
| 114 |
+
git commit-at (CLI)
|
| 115 |
β
|
| 116 |
βββ Checks Docker services
|
| 117 |
β βββ Ollama (AI model, port 11434)
|
|
|
|
| 130 |
```
|
| 131 |
"""
|
| 132 |
|
| 133 |
+
with gr.Blocks(title="git commit-at") as demo:
|
| 134 |
with gr.Row():
|
| 135 |
with gr.Column(scale=2):
|
| 136 |
gr.Markdown(ABOUT_MD)
|
| 137 |
with gr.Column(scale=1):
|
| 138 |
gr.Markdown("## Install now")
|
| 139 |
+
gr.Code(value=INSTALL_CMD, language="shell", label="npm")
|
| 140 |
gr.Markdown(f"[View on npm]({NPM_URL}) Β· [GitHub]({GITHUB_URL})")
|
| 141 |
gr.Markdown("---")
|
| 142 |
gr.Markdown(QUICKSTART_MD)
|