gradio_tabular / README.md
aedupuga's picture
Upload README.md with huggingface_hub
fd79056 verified

A newer version of the Gradio SDK is available: 6.3.0

Upgrade
metadata
title: Device Use Before Sleep Predictor
emoji: 🛌
colorFrom: purple
colorTo: indigo
sdk: gradio
sdk_version: 4.37.2
app_file: app.py
python_version: '3.12'
pinned: false

Device Use Before Sleep Predictor

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.

How to use

Interact with the input fields to provide information about a student's habits:

  • phone_hours: The average number of hours spent on a phone per day (decimal).
  • computer_hours: The average number of hours spent on a computer per day (decimal).
  • device_count: The total number of devices the student owns (integer).
  • sleep_quality: The student's self-reported sleep quality (select from "Poor", "Fair", "Good", "Excellent").
  • 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).
  • sleep_hours: The average number of hours the student sleeps per night (decimal).

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.

Examples

Here are a few representative examples you can try:

  • Phone Hours: 2.0, Computer Hours: 3.0, Device Count: 3, Sleep Quality: Good, Sleep Time: 2200, Sleep Hours: 8.0
  • Phone Hours: 5.0, Computer Hours: 6.0, Device Count: 5, Sleep Quality: Fair, Sleep Time: 100, Sleep Hours: 6.0
  • Phone Hours: 1.0, Computer Hours: 1.0, Device Count: 1, Sleep Quality: Excellent, Sleep Time: 2300, Sleep Hours: 9.0