bhargavirengarajan21 commited on
Commit
03c00e0
Β·
1 Parent(s): 10a4d72

Fix the app.py error

Browse files
Files changed (2) hide show
  1. README.md +1 -3
  2. app.py +14 -14
README.md CHANGED
@@ -3,9 +3,7 @@ title: git-commit-at
3
  emoji: πŸ€–
4
  colorFrom: blue
5
  colorTo: indigo
6
- sdk: gradio
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-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,7 +31,7 @@ the terminal.
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,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-commit-at
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-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,7 +111,7 @@ HOW_IT_WORKS_MD = """
111
  ## How it works
112
 
113
  ```
114
- git-commit-at (CLI)
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-commit-at", theme=gr.themes.Monochrome()) 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="bash", label="npm")
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)