Skip to main content

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 8080 for a different port
  • For help: deepseek-r1-local --help

License

MIT License

Links

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deepseek_r1_local-1.0.0-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

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

Hashes for deepseek_r1_local-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3a5878f91c1fbc35b76e3a34d8b82d943e5629b219675f1b2295022bee3cae10
MD5 84eb6b463766977a7f05d1db68df8df2
BLAKE2b-256 a07876621c44de201c0f539fadce9900e0dc7fb7b1b89011c71538adeaea7574

See more details on using hashes here.

File details

Details for the file deepseek_r1_local-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for deepseek_r1_local-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d1310bb5cd264bd355e009ca68fe5b362c2d077016ba17590333a98f5de7b2e
MD5 f89800fb1af9687562e4b94b5c43264f
BLAKE2b-256 e138cc760a1829b75b7f83c87723b85e2d0a574796109ab207122415b8321b3d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page