https://github.com/sammcj/ollama-artefacts
  
  
    Build HTML artefacts with Ollama 
    https://github.com/sammcj/ollama-artefacts
  
        Last synced: 3 months ago 
        JSON representation
    
Build HTML artefacts with Ollama
- Host: GitHub
 - URL: https://github.com/sammcj/ollama-artefacts
 - Owner: sammcj
 - License: mit
 - Created: 2024-11-14T03:27:11.000Z (12 months ago)
 - Default Branch: main
 - Last Pushed: 2024-12-11T00:02:00.000Z (11 months ago)
 - Last Synced: 2025-04-09T19:07:57.615Z (7 months ago)
 - Language: Python
 - Size: 3.75 MB
 - Stars: 11
 - Watchers: 3
 - Forks: 0
 - Open Issues: 1
 - 
            Metadata Files:
            
- Readme: README.md
 - License: LICENSE
 
 
Awesome Lists containing this project
README
          # Ollama Code Artefacts
## Running the code
1. Create a venv and install the requirements
2. Copy the `.env.example` file to `.env` and adjust the configuration as desired
3. Run the server
```bash
uv venv
source .venv/bin/activate
uv pip install -U -r requirements.txt
cp .env.example .env
python app.py
```
## Configuration
The configuration is done through the `.env` file. The following variables are available:
- `OLLAMA_MODEL` default: `qwen2.5-coder:14b-instruct-q6_K` - Model to use
- `OLLAMA_HOST` default: `http://localhost:11434` - Host URL of the Ollama server
- `MAX_TOKENS` default: `4096` - Maximum number of tokens to generate
- `OPEN_BROWSER` default: `True` - Open the browser when the server starts
## Screenshot

---
Originally forked from https://huggingface.co/spaces/Qwen/Qwen2.5-Coder-Artifacts