Silvia.AI is a futuristic, AI-powered web assistant and a dedicated Python library for AI interaction.
- AI Chat: Powered by Google Gemini (via
ai_web_helperlibrary). - Text Summarization: Instantly summarize long blocks of text.
- Persistent History: Chat sessions are saved.
- Secure: API keys managed via
.env.
This repository contains two main components:
ai_web_helper_pkg/: A reusable Python package that handles the AI logic (Gemini API interaction).flask_app/: The Flask web application that provides the Silvia.AI interface.
- Python 3.8+
- Google Gemini API Key
Clone the repository and set up a virtual environment:
git clone https://github.com/shyamjames/AI-Web-Helper.git
cd AI-Web-Helper
python3 -m venv venv
source venv/bin/activateInstall the custom AI helper package:
pip install -e ai_web_helper_pkg/Note: You also need to install Flask and other dependencies if not already installed.
pip install flask python-dotenv google-generativeai markdownCreate a .env file in the flask_app directory:
cd flask_app
echo "GEMINI_API_KEY=your_api_key_here" > .envStart the Silvia.AI server:
python3 app.pyVisit http://127.0.0.1:5000 in your browser.
