A newer version of the Gradio SDK is available:
5.44.1
metadata
title: Class Schedule Generator V2
emoji: π¦
colorFrom: blue
colorTo: red
sdk: gradio
sdk_version: 5.42.0
app_file: app.py
python_version: 3.10.13
pinned: false
π Class Schedule Generator
A sleek, interactive Gradio app that generates three different weekly class schedules based on your preferences.
Built for a data science project β using a fully embedded synthetic dataset of 1,000 college classes across 10 subjects.
β¨ Features
- Subject selection β Choose from 10 subjects via dropdown
- Custom counts β Specify how many classes per subject you want
- Total tracker β Live update of total class count
- Custom instructions β Add constraints like:
Don't give me classes on Sundays
No classes before 10 AM
No classes after 6 PM
- Three schedule options β AI picks non-conflicting classes that fit your rules
- Weekly timetable view β Color-coded blocks for each class
- Navigation β "Previous" and "Next" buttons to flip between schedules
- Full class details β Click to see all info (professor, time, days, subject)
π Dataset
The dataset is embedded directly into the app (no external file required).
- 10 subjects: Computer Science, Mathematics, Economics, Psychology, Biology, Chemistry, Physics, Art History, Philosophy, Finance
- 100 classes per subject (1,000 total)
- Each record includes:
class_id
name
professor
days
(SundayβFriday)times
(8 AMβ8 PM)subject
π Running Locally
- Clone this repository or download the files
- Install dependencies:
pip install -r requirements_inline.txt