SpringyBon commited on
Commit
f75cbfb
·
verified ·
1 Parent(s): db5c2d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -32,16 +32,16 @@ with gr.Blocks() as iface:
32
  gr.Markdown("# Student Score Predictor (Pickle Model)")
33
  with gr.Row():
34
  attendance = gr.Slider(70, 100, value=90, step=1, label="Attendance (%)")
35
- study_hours = gr.Slider(1, 20, value=5, step=1, label="Study Hours / week")
36
- parent_support = gr.Slider(1, 5, value=3, step=1, label="Parental Support (1-5)")
37
  with gr.Row():
38
  sleep_hours = gr.Slider(5, 12, value=8, step=1, label="Sleep Hours / night")
39
- reading_hours = gr.Slider(0, 20, value=2, step=1, label="Reading Hours / week")
40
- behavior_score = gr.Slider(1, 10, value=7, step=1, label="Behavior Score (1-10)")
41
  with gr.Row():
42
  pretest_score = gr.Slider(0, 100, value=70, step=1, label="Pretest Score")
43
- homework_completion = gr.Slider(0, 100, value=85, step=1, label="Homework Completion (%)")
44
- participation = gr.Slider(1, 10, value=6, step=1, label="Participation (1-10)")
45
 
46
 
47
  out = gr.JSON(label="Predicted Scores")
 
32
  gr.Markdown("# Student Score Predictor (Pickle Model)")
33
  with gr.Row():
34
  attendance = gr.Slider(70, 100, value=90, step=1, label="Attendance (%)")
35
+ study_hours = gr.Slider(1, 20, value=5, step=1, label="Study Hours / week")
36
+ parent_support = gr.Slider(1, 5, value=3, step=1, label="Parental Support (1-5)")
37
  with gr.Row():
38
  sleep_hours = gr.Slider(5, 12, value=8, step=1, label="Sleep Hours / night")
39
+ reading_hours = gr.Slider(0, 20, value=2, step=1, label="Reading Hours / week")
40
+ behavior_score = gr.Slider(1, 10, value=7, step=1, label="Behavior Score (1-10)")
41
  with gr.Row():
42
  pretest_score = gr.Slider(0, 100, value=70, step=1, label="Pretest Score")
43
+ homework_completion = gr.Slider(0, 100, value=85, step=1, label="Homework Completion (%)")
44
+ participation = gr.Slider(1, 10, value=6, step=1, label="Participation (1-10)")
45
 
46
 
47
  out = gr.JSON(label="Predicted Scores")