This project is a web application powered by Streamlit and Google Gemini AI. It provides a tool to simplify complex text descriptions based on user preferences for simplicity levels, examples, and key point focus.
- Summarize complex text into simple language.
- Options for different simplicity levels:
- Very Simple: As if explaining to a child.
- Simple: Clear and easy-to-understand language.
- Moderate: General audience-friendly language.
- Additional options to include examples and focus on key points.
- Interactive UI with modern styling.
gdg-klef-Gemini-Simplify/
├── app.py # Main application file
└── requirements.txt # Python dependencies
- Python 3.8+ is required.
- A Google API Key for the Generative AI model.
-
Clone the repository
git clone https://github.com/your-username/gdg-klef-Gemini-Simplify.git cd gdg-klef-Gemini-Simplify
-
Create a virtual environment (optional but recommended)
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install dependencies
pip install -r requirements.txt
-
Set up environment variables
- Create a
.env
file in the root directory:GOOGLE_API_KEY=your_google_api_key
- Replace
your_google_api_key
with your actual API key.
- Create a
-
Run the application
streamlit run app.py
-
Access the app
- Open the URL shown in the terminal (default: http://localhost:8501).
- Enter a description in the provided text area.
- Select a simplicity level:
- Very Simple
- Simple
- Moderate
- Optional settings:
- Check "Include examples" to add clarifying examples.
- Check "Focus strictly on key points" to avoid unnecessary details.
- Click "✨ Summarize ✨" to generate the summary.
- View the summary in the output section.
- Streamlit: For building the web app.
- google-generativeai: To interact with the Google Gemini AI model.
- python-dotenv: For managing environment variables.
- If the app fails to load:
- Ensure your Google API key is valid and has access to the required Generative AI services.
- Double-check your
.env
file for correct formatting.
- If dependencies are missing, re-run:
pip install -r requirements.txt
- Add support for multiple languages.
- Enhance UI/UX for better interactivity.
- Provide downloadable summaries as a file.
This project is licensed under the MIT License.
Feel free to fork this repository, create a branch, and submit a pull request for any features or improvements!