A virtual legal assistant powered by the Gemini API, designed to provide users with legal advice based on their queries. This chatbot features a Flask backend, a JavaScript-based frontend, and is deployed on Vercel for seamless performance.
- AI-Powered Legal Assistance – Provides responses based on user legal queries.
- Flask Backend – Handles API requests and processes responses.
- Interactive Frontend – Built with JavaScript, HTML, and CSS.
- Text-to-Speech (TTS) – Converts responses into speech for accessibility.
- Vercel Deployment – Ensures fast and scalable performance.
- Backend: Flask, Gemini API
- Frontend: JavaScript, HTML, CSS
- Deployment: Vercel
- Additional: Text-to-Speech (TTS)
- Clone the repository:
git clone https://github.com/your-username/ai-agent.git cd ai-agent - Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Set up your API key for the Gemini AI (if required):
export GEMINI_API_KEY=your_api_key_here # On Windows: set GEMINI_API_KEY=your_api_key_here
- Run the Flask server:
python app.py
- Open the frontend in a browser or serve it using a local server.
- The backend is hosted on Vercel, ensuring a smooth and reliable user experience.
- To deploy updates, push changes to the GitHub repository connected to Vercel.
- Enhance legal knowledge base.
- Implement user authentication for personalized responses.
- Add multilingual support.
- Improve UI/UX for better usability.
This project is open-source and available under the MIT License.
Feel free to contribute or suggest improvements! 🚀