Spaces:
Sleeping
Sleeping
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,12 +1,23 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Sleep Habits → Phone-Before-Bed (Tabular) — Gradio GUI
|
| 2 |
+
|
| 3 |
+
**What this is:** A minimal GUI that drives a classmate’s AutoGluon Tabular model to predict whether a student uses their phone before bed (binary classification).
|
| 4 |
+
**Why:** Practice building a clean, user-facing interface with proper widgets, validation, and documentation.
|
| 5 |
+
|
| 6 |
+
**Model (classmate’s):** https://huggingface.co/jennifee/classical_automl_model
|
| 7 |
+
**Dataset (original docs):** https://huggingface.co/datasets/Iris314/Students_sleep_tabular
|
| 8 |
+
|
| 9 |
+
## How the GUI meets the rubric
|
| 10 |
+
- Uses a classmate’s **tabular** model (not my own); links to **model** and **dataset**.
|
| 11 |
+
- Accepts **single-record** inputs via appropriate widgets with clear labels/ranges:
|
| 12 |
+
- Integers: `phone_hours`, `computer_hours`, `device_count`, `sleep_time`, `sleep_hours`
|
| 13 |
+
- Category: `sleep_quality ∈ {bad, medium, good}`
|
| 14 |
+
- ≥ **3 example** inputs are included in the app.
|
| 15 |
+
- Validation via constrained slider ranges & dropdown choices; friendly, simple UX.
|
| 16 |
+
- Presents predictions **clearly** via ranked class probabilities:
|
| 17 |
+
- “Yes (uses phone before bed)”
|
| 18 |
+
- “No (does not use phone before bed)”
|
| 19 |
+
- Deployed as a **public Hugging Face Space** with this README.
|
| 20 |
+
|
| 21 |
+
**Notes on inference parameters:** This is a binary classifier that exposes ranked probabilities. (A threshold slider is optional; the ranked probabilities already communicate confidence cleanly.)
|
| 22 |
+
|
| 23 |
+
**Acknowledgments:** Model by @jennifee; dataset by @Iris314. Built for a GUI homework assignment.
|