Offline AI Web UI with Council Deliberation System
Project description
๐ DeepSeek R1 Local Web UI
An offline, privacy-focused AI chat application with TinyLlama model, Web Search Integration, and Council Deliberation System optimized for CPU performance.
Features
- ๐ค Offline AI Chat (TinyLlama-1.1B, CPU-optimized)
- ๐ Web Search Integration (DuckDuckGo)
- ๐๏ธ Council Deliberation System (5 AI personas, voting)
- โก Performance Optimizations (response caching, fast inference)
- ๐ 100% Privacy (all processing local)
Council Members
- ๐ง Dr. Logic (Analytical Rationalist)
- ๐ Professor Sage (Historical Scholar)
- ๐ก Innovator Nova (Creative Visionary)
- โค๏ธ Advocate Heart (Empathetic Humanist)
- ๐ฏ Pragmatist Ray (Practical Realist)
Installation
1. Install via pip (when published)
pip install deepseek-r1-local
2. Download Model
deepseek-r1-local download-model
3. Start Server
deepseek-r1-local start
4. Open Browser
Go to: http://localhost:5000
Usage
- Use toggles for Web Search and Council Mode in the UI
- Ask questions, get AI and council responses
- Council mode: 5 personas deliberate, vote, and select a winning proposal
Python API Example
from deepseek_r1_local import ModelManager, Council, WebSearcher
model = ModelManager()
model.load_model()
response = model.generate_response("Hello!", max_length=50)
council = Council()
results = council.deliberate("Should I learn Rust or Go?", model)
print(council.format_results(results))
searcher = WebSearcher()
results = searcher.search("Python tutorials", max_results=5)
print(searcher.format_search_results(results))
File Structure
deepseek_r1-local/
โโโ deepseek_r1_local/
โ โโโ __init__.py
โ โโโ app.py
โ โโโ cli.py
โ โโโ templates/
โ โโโ index.html
โโโ models/ # Model files (downloaded)
โโโ setup.py
โโโ pyproject.toml
โโโ requirements.txt
โโโ README.md
โโโ LICENSE
โโโ MANIFEST.in
โโโ CHANGELOG.md
โโโ INSTALL.md
โโโ QUICKREF.md
โโโ PACKAGE_GUIDE.md
โโโ build.sh
โโโ test_package.py
Troubleshooting
- If model fails to load, re-run
download-model - Use
deepseek-r1-local start --port 8080for a different port - For help:
deepseek-r1-local --help
License
MIT License
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
deepseek_r1_local-1.0.0.tar.gz
(47.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file deepseek_r1_local-1.0.0.tar.gz.
File metadata
- Download URL: deepseek_r1_local-1.0.0.tar.gz
- Upload date:
- Size: 47.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a5878f91c1fbc35b76e3a34d8b82d943e5629b219675f1b2295022bee3cae10
|
|
| MD5 |
84eb6b463766977a7f05d1db68df8df2
|
|
| BLAKE2b-256 |
a07876621c44de201c0f539fadce9900e0dc7fb7b1b89011c71538adeaea7574
|
File details
Details for the file deepseek_r1_local-1.0.0-py3-none-any.whl.
File metadata
- Download URL: deepseek_r1_local-1.0.0-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d1310bb5cd264bd355e009ca68fe5b362c2d077016ba17590333a98f5de7b2e
|
|
| MD5 |
f89800fb1af9687562e4b94b5c43264f
|
|
| BLAKE2b-256 |
e138cc760a1829b75b7f83c87723b85e2d0a574796109ab207122415b8321b3d
|