Loading repository data…
Loading repository data…
muskanlohani / repository
AI based Student Feedback Analyzer
A beginner-friendly Python project that collects, stores, and analyzes student feedback using:
✅ Feedback Submission – Students can enter name, subject, rating, and comments.
✅ Database Integration – Feedback stored securely in a MySQL database.
✅ Dashboard:
View all feedback in tabular format.
See average rating per subject in bar charts.
Subject-wise Analysis with:
+----------------+ +------------------+ +-------------------+
| Streamlit UI | <--> | MySQL Database | <--> | Data Storage |
+----------------+ +------------------+ +-------------------+
|
v
+----------------+ +---------------------------+
| WordCloud & | | Google Gemini AI API |
| Charts | <--> | (Sentiment + Summarizer) |
+----------------+ +---------------------------+
student-feedback-analyzer/
│
├── app.py # Main Streamlit app
├── requirements.txt # Python dependencies
├── .env # Environment variables (API key, DB creds)
└── README.md # Project documentation
git clone https://github.com/arunishrajput/student-feedback-analyzer.git
cd student-feedback-analyzer
pip install -r requirements.txt
requirements.txt should include:
streamlit
mysql-connector-python
pandas
matplotlib
wordcloud
python-dotenv
google-genai
CREATE DATABASE feedback_db;
USE feedback_db;
CREATE TABLE feedback (
id INT AUTO_INCREMENT PRIMARY KEY,
student_name VARCHAR(100),
subject VARCHAR(100),
rating INT,
comments TEXT,
date_submitted TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);
Create a .env file in the project root:
# Google Gemini API Key
GEMINI_API_KEY=your_google_ai_studio_api_key_here
# MySQL Config
DB_HOST=localhost
DB_USER=root
DB_PASSWORD=your_mysql_password
DB_NAME=feedback_db
streamlit run app.py
Submit Feedback
Dashboard
Word Cloud
Average Ratings
Physics 4.2
Chemistry 3.8
Mathematics 4.5
{
"Positive": 12,
"Negative": 3,
"Neutral": 5
}
“Most students appreciated the clarity of explanations. A few suggested more real-world examples. Overall feedback is positive with some scope for improvement.”
See 👉 Demo Script Guide (extra file for classroom presentation)