Skip to content

An interactive web application that leverages Google's Gemini Large Language Model to provide concise summaries of user-provided text.

Notifications You must be signed in to change notification settings

debtanu-github/Text_Summarizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ Gemini AI Text Summarizer

Streamlit App

An interactive web application that leverages Google's Gemini Large Language Model to provide concise summaries of user-provided text. Built with Python and Streamlit for a fast, responsive user experience.

➑️ Live Demo: text-summarizer-1.streamlit.app


✨ Features

  • AI-Powered Summarization: Utilizes Google Gemini for intelligent text summarization.
  • Interactive UI: Simple and intuitive interface built with Streamlit.
  • Adjustable Summary Length: Users can specify the approximate target word count for the summary.
  • Real-time Output: Get summaries quickly with a loading indicator.
  • Responsive Design: Works on desktop and mobile browsers.

πŸš€ Demo

(A screenshot or GIF demonstrating the app in action will be added here soon!)


πŸ› οΈ Technologies Used


βš™οΈ Setup and Run Locally (Optional)

If you'd like to run this project on your local machine:

  1. Clone the repository:

    git clone https://github.com/debtanu-github/Text_Summarizer.git
    cd Text_Summarizer
  2. Create and activate a virtual environment:

    python -m venv venv
    # On Windows
    venv\Scripts\activate
    # On macOS/Linux
    source venv/bin/activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Set up your Google Gemini API Key:

    • Create a file named .env in the project root (Text_Summarizer folder).
    • Add your API key to the .env file:
      GOOGLE_API_KEY="YOUR_GOOGLE_GEMINI_API_KEY_HERE"
      
    • You can get an API key from Google AI Studio.
  5. Run the Streamlit app:

    streamlit run app.py

    The application should open in your web browser.


πŸ“„ Files in this Repository

  • app.py: The main Streamlit application script.
  • requirements.txt: Python dependencies for the project.
  • .gitignore: Specifies intentionally untracked files that Git should ignore.
  • main.py: (Kept for reference) Foundational FastAPI backend structure for potential future API development.
  • README.md: This file!

πŸ’‘ Future Ideas (Potential Improvements)

  • Option for different summary styles (e.g., bullet points).
  • Support for summarizing text from URLs or uploaded files.
  • More advanced error handling and user feedback.
  • Caching results for frequently summarized texts.

πŸ™ Acknowledgements


About

An interactive web application that leverages Google's Gemini Large Language Model to provide concise summaries of user-provided text.

Topics

Resources

Stars

Watchers

Forks

Languages