Skip to content

AFG123/PersonalBrain

Repository files navigation

PersonalBrain — Web UI

This adds a tiny Flask-based web UI to run your local assistant. It uses your existing brain.py logic and vector search.

Files added:

  • app.py — Flask server with / UI and /api/chat endpoint
  • templates/index.html — simple chat UI
  • static/chat.js — frontend JS to call the API
  • static/style.css — UI styles
  • requirements.txt — Flask dependency

How to run (Windows PowerShell):

  1. Activate your virtual environment (from the project root):
.\venv\Scripts\Activate.ps1
  1. Install requirements (only needed once):
pip install -r requirements.txt
  1. Start the server:
python app.py
  1. Open http://127.0.0.1:5000 in your browser and ask questions.

Notes:

  • The server imports brain.py to reuse its search, format_context, prompt, and model objects. Ensure brain.py works standalone.
  • If you run into import errors, confirm your venv is activated and required packages are installed there.

About

Personal AI Assistant with document Q&A capabilities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors