Spaces:
Sleeping
Sleeping
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,12 +1,25 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
# Device Use Before Sleep Predictor
|
| 3 |
+
|
| 4 |
+
This Gradio Space hosts a machine learning model that predicts whether a student uses their device before sleep based on various factors related to their device usage and sleeping habits.
|
| 5 |
+
|
| 6 |
+
## How to use
|
| 7 |
+
|
| 8 |
+
Interact with the input fields to provide information about a student's habits:
|
| 9 |
+
|
| 10 |
+
* **phone_hours:** The average number of hours spent on a phone per day (decimal).
|
| 11 |
+
* **computer_hours:** The average number of hours spent on a computer per day (decimal).
|
| 12 |
+
* **device_count:** The total number of devices the student owns (integer).
|
| 13 |
+
* **sleep_quality:** The student's self-reported sleep quality (select from "Poor", "Fair", "Good", "Excellent").
|
| 14 |
+
* **sleep_time:** The approximate time the student goes to sleep in 24-hour format (integer, e.g., 2200 for 10 PM, 100 for 1 AM).
|
| 15 |
+
* **sleep_hours:** The average number of hours the student sleeps per night (decimal).
|
| 16 |
+
|
| 17 |
+
The app will output the predicted outcome ("Uses device before bed" or "Does not use device before bed") and the confidence score for the prediction.
|
| 18 |
+
|
| 19 |
+
## Examples
|
| 20 |
+
|
| 21 |
+
Here are a few representative examples you can try:
|
| 22 |
+
|
| 23 |
+
* Phone Hours: 2.0, Computer Hours: 3.0, Device Count: 3, Sleep Quality: Good, Sleep Time: 2200, Sleep Hours: 8.0
|
| 24 |
+
* Phone Hours: 5.0, Computer Hours: 6.0, Device Count: 5, Sleep Quality: Fair, Sleep Time: 100, Sleep Hours: 6.0
|
| 25 |
+
* Phone Hours: 1.0, Computer Hours: 1.0, Device Count: 1, Sleep Quality: Excellent, Sleep Time: 2300, Sleep Hours: 9.0
|