Update README
This commit is contained in:
parent
40d25a71c4
commit
616e4aa8fa
29
README.md
29
README.md
|
@ -175,14 +175,17 @@ support for other languages:
|
|||
|
||||
## CLI install + usage
|
||||
|
||||
1. Download [mill_cli.py](mill_cli.py).
|
||||
2. Download [mill.py](mill.py), [mill_lang_markdown.py](mill_lang_markdown.py)
|
||||
and [mill_llm_llama_cpp.py](mill_llm_llama_cpp.py) and put them on the
|
||||
Python path of `mill_cli.py`. Easy solution: put all files in the same
|
||||
folder.
|
||||
1. Clone the Git repo or download these files:
|
||||
1. `mill_cli.py`
|
||||
2. `mill.py`
|
||||
3. `mill_lang_markdown.py`
|
||||
4. `mill_llm_llama_cpp.py`
|
||||
5. `mill_example_markdown_llama_cpp.py`
|
||||
2. Put files 2-5 on the Python path of `mill_cli.py`. Easy solution: put all
|
||||
files in the same folder.
|
||||
3. Set the environment variable `MILL_LLAMACPP_MAIN` to the path of
|
||||
`llama.cpp/main` or your wrapper around it.
|
||||
4. Pipe your Markdown document to [mill_cli.py](mill_cli.py).
|
||||
4. Pipe your Markdown document to `mill_cli.py`.
|
||||
|
||||
```bash
|
||||
export MILL_LLAMACPP_MAIN=/path/to/llama.cpp/main
|
||||
|
@ -206,11 +209,14 @@ use `-h` for a usage description.
|
|||
|
||||
## CGI install + usage
|
||||
|
||||
1. Download [mill_cgi.py](mill_cgi.py) and put it on the CGI path.
|
||||
2. Download [mill.py](mill.py), [mill_lang_markdown.py](mill_lang_markdown.py)
|
||||
and [mill_llm_llama_cpp.py](mill_llm_llama_cpp.py) and put them on the
|
||||
Python path of `mill_cgi.py`. Easy solution: put all files in the same
|
||||
folder.
|
||||
1. Clone the Git repo or download these files:
|
||||
1. `mill_cgi.py`
|
||||
2. `mill.py`
|
||||
3. `mill_lang_markdown.py`
|
||||
4. `mill_llm_llama_cpp.py`
|
||||
5. `mill_example_markdown_llama_cpp.py`
|
||||
2. Put files 2-5 on the Python path of `mill_cgi.py`. Easy solution: put all
|
||||
files in the same folder.
|
||||
3. Set the environment variable `MILL_LLAMACPP_MAIN` to the path of
|
||||
`llama.cpp/main` or your wrapper around it.
|
||||
4. Start your CGI web server.
|
||||
|
@ -221,6 +227,7 @@ cp -v mill_cgi.py public_html/cgi-bin
|
|||
cp -v mill.py public_html/cgi-bin
|
||||
cp -v mill_lang_markdown.py public_html/cgi-bin
|
||||
cp -v mill_llm_llama_cpp.py public_html/cgi-bin
|
||||
cp -v mill_example_markdown_llama_cpp.py public_html/cgi-bin
|
||||
chmod +x public_html/cgi-bin/mill_cgi.py
|
||||
export MILL_LLAMACPP_MAIN=/path/to/llama.cpp/main
|
||||
python -m http.server --cgi -d public_html
|
||||
|
|
14
mill_cgi.py
14
mill_cgi.py
|
@ -19,11 +19,14 @@
|
|||
r"""
|
||||
## CGI install + usage
|
||||
|
||||
1. Download [mill_cgi.py](mill_cgi.py) and put it on the CGI path.
|
||||
2. Download [mill.py](mill.py), [mill_lang_markdown.py](mill_lang_markdown.py)
|
||||
and [mill_llm_llama_cpp.py](mill_llm_llama_cpp.py) and put them on the
|
||||
Python path of `mill_cgi.py`. Easy solution: put all files in the same
|
||||
folder.
|
||||
1. Clone the Git repo or download these files:
|
||||
1. `mill_cgi.py`
|
||||
2. `mill.py`
|
||||
3. `mill_lang_markdown.py`
|
||||
4. `mill_llm_llama_cpp.py`
|
||||
5. `mill_example_markdown_llama_cpp.py`
|
||||
2. Put files 2-5 on the Python path of `mill_cgi.py`. Easy solution: put all
|
||||
files in the same folder.
|
||||
3. Set the environment variable `MILL_LLAMACPP_MAIN` to the path of
|
||||
`llama.cpp/main` or your wrapper around it.
|
||||
4. Start your CGI web server.
|
||||
|
@ -34,6 +37,7 @@ cp -v mill_cgi.py public_html/cgi-bin
|
|||
cp -v mill.py public_html/cgi-bin
|
||||
cp -v mill_lang_markdown.py public_html/cgi-bin
|
||||
cp -v mill_llm_llama_cpp.py public_html/cgi-bin
|
||||
cp -v mill_example_markdown_llama_cpp.py public_html/cgi-bin
|
||||
chmod +x public_html/cgi-bin/mill_cgi.py
|
||||
export MILL_LLAMACPP_MAIN=/path/to/llama.cpp/main
|
||||
python -m http.server --cgi -d public_html
|
||||
|
|
15
mill_cli.py
15
mill_cli.py
|
@ -19,14 +19,17 @@
|
|||
r"""
|
||||
## CLI install + usage
|
||||
|
||||
1. Download [mill_cli.py](mill_cli.py).
|
||||
2. Download [mill.py](mill.py), [mill_lang_markdown.py](mill_lang_markdown.py)
|
||||
and [mill_llm_llama_cpp.py](mill_llm_llama_cpp.py) and put them on the
|
||||
Python path of `mill_cli.py`. Easy solution: put all files in the same
|
||||
folder.
|
||||
1. Clone the Git repo or download these files:
|
||||
1. `mill_cli.py`
|
||||
2. `mill.py`
|
||||
3. `mill_lang_markdown.py`
|
||||
4. `mill_llm_llama_cpp.py`
|
||||
5. `mill_example_markdown_llama_cpp.py`
|
||||
2. Put files 2-5 on the Python path of `mill_cli.py`. Easy solution: put all
|
||||
files in the same folder.
|
||||
3. Set the environment variable `MILL_LLAMACPP_MAIN` to the path of
|
||||
`llama.cpp/main` or your wrapper around it.
|
||||
4. Pipe your Markdown document to [mill_cli.py](mill_cli.py).
|
||||
4. Pipe your Markdown document to `mill_cli.py`.
|
||||
|
||||
```bash
|
||||
export MILL_LLAMACPP_MAIN=/path/to/llama.cpp/main
|
||||
|
|
Loading…
Reference in New Issue
Block a user