Legal Counsel AI was inspired by the need to make basic legal knowledge more accessible and understandable to everyone. Many people hesitate to seek legal help due to complexity and lack of awareness, and this project aims to bridge that gap using AI.

While building this project, I learned how to integrate the Google Gemini API with Streamlit to create a real-time conversational application, manage session-based chat history, and deploy a local app publicly using ngrok. The project was built by designing a clean chat interface, connecting user queries to the Gemini Flash model, and handling responses efficiently.

One of the main challenges was structuring the chat flow and maintaining conversation state without overcomplicating the system. Another challenge was securely managing API keys and ensuring the app remained lightweight and responsive. Overall, this project strengthened my understanding of AI-powered web applications and LegalTech fundamentals.

Built With

  • geminiapi
  • genai
  • googlecolab
  • ngrok
  • python
  • streamlit
Share this project:

Updates