import subprocess import gradio as gr # Paths BINARY_PATH = "./bin/llama-cli" # prebuilt binary from zip MODEL_PATH = "./qwen0.5-finetuned.gguf" # Commit message prompt template commit_prompt = """Generate a meaningful commit message explaining all the changes in the provided Git diff. ### Git Diff: {} ### Commit Message: """ # Example git diff prefilled in Gradio git_diff_example = """ diff --git a/index.html b/index.html index 89abcde..f123456 100644 --- a/index.html +++ b/index.html @@ -5,16 +5,6 @@
| Name | -Age | -
|---|---|
| John Doe | -30 | -
This is a newly added paragraph replacing the table.