An AI-powered tool that converts complex academic content into clear, easy-to-understand explanations β powered by IBM Granite on IBM watsonx.ai.
Students often struggle to understand complex textbooks, research papers, and lecture notes filled with difficult words and jargon.
This project solves that problem by using IBM Granite AI to read any academic content and rewrite it in a way that is easy to understand β based on the student's learning level.
- π§ AI-Powered Simplification β Uses IBM Granite to simplify real academic content
- π― 4 Learning Levels β Beginner, Intermediate, Advanced, Expert
- π 5 Structured Outputs β Explanation, Key Concepts, Important Points, Examples, Quick Revision
- π‘ Demo Mode β Works offline without any IBM account
- π’ Live IBM Granite Mode β Connects to real IBM Granite AI using your credentials
- π Sample Academic Topics β Biology, Computer Science, Physics, Economics
- π₯ Download Study Notes β Save output as
.mdor.txtfile
π Click here to try the live app
git clone https://github.com/your-username/Course-Content-Simplifier.git
cd Course-Content-Simplifierpip install -r requirements.txtstreamlit run app.pyOpen your browser and go to π http://localhost:8501
β The app will run in Demo Mode automatically β no IBM account needed to try it!
When you run the app without any credentials, it automatically switches to Demo Mode.
- β Works completely offline
- β Generates structured educational content from your input
- β All 5 output sections work (Explanation, Concepts, Points, Examples, Revision)
- β Perfect for quick testing and evaluation
The sidebar will show:
π‘ Demo Mode Active β Using the built-in educational engine.
To use real IBM Granite AI, you need two things from IBM Cloud:
- An IBM Cloud API Key
- A Watson Studio Project ID
Follow the steps below to get them.
Go to π https://cloud.ibm.com and sign up for a free account.
- Go to π https://dataplatform.cloud.ibm.com
- Log in with your IBM Cloud account
- Click "New project"
- Choose "Create an empty project"
- Give it a name (e.g.,
Course Content Simplifier) - Click "Create"
- Inside your project, click the "Manage" tab
- Click "Services & Integrations" on the left
- Click "Associate service"
- Select WatsonMachineLearning (Type: watsonx.ai Runtime, Location: Dallas)
- Click "Associate"
- Inside your project, click the "Manage" tab
- Click "General" on the left
- Scroll down to find "Project ID"
- Copy the UUID (looks like:
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
- Go to π https://cloud.ibm.com/iam/apikeys
- Click "Create an IBM Cloud API key"
- Give it a name (e.g.,
granite-key) - Click "Create"
β οΈ Copy the key immediately β IBM shows it only once!
Copy the .env.example file to .env:
cp .env.example .envOpen .env and fill in your values:
WATSONX_API_KEY=your_actual_api_key_here
WATSONX_PROJECT_ID=your_actual_project_id_here
WATSONX_URL=https://us-south.ml.cloud.ibm.com
WATSONX_MODEL_ID=ibm/granite-4-h-smallRestart the app:
streamlit run app.pyThe sidebar will now show:
π’ Live IBM Granite Mode β Connected
Course-Content-Simplifier/
βββ app.py # Main Streamlit application
βββ requirements.txt # Python dependencies
βββ .env.example # Credentials template (safe to share)
βββ .env # Your actual credentials (NOT uploaded to GitHub)
βββ .gitignore # Protects your secret API key from being uploaded
βββ README.md # This file
| Technology | Purpose |
|---|---|
| Python 3.11 | Core programming language |
| Streamlit | Web application interface |
| IBM watsonx.ai | AI model hosting platform |
IBM Granite 4 (ibm/granite-4-h-small) |
AI language model |
| ibm-watsonx-ai SDK | Python library for IBM AI API |
| python-dotenv | Loads credentials from .env file |
| IBM Cloud IAM | Secure API key management |
- Select a sample topic from the dropdown (or paste your own content)
- Choose your learning level β Beginner, Intermediate, Advanced, or Expert
- Click "β¨ Simplify My Content"
- View your 5 structured output sections
- Download your study notes as
.mdor.txt
| Level | Best For |
|---|---|
| π§ Beginner | Students new to the topic β simple words, everyday analogies |
| π Intermediate | Undergraduate students β clear explanations with key terms |
| π¬ Advanced | Senior students β technical depth with formal terminology |
| π Expert | Researchers β precise, dense, formal academic language |
- Never upload your
.envfile to GitHub β it contains your secret API key - The
.gitignorefile in this project automatically blocks.envfrom being uploaded - Use
.env.exampleas a safe template to share the required variable names
AI Course Content Simplifier Β· Powered by IBM Granite Β· IBM watsonx.ai