starboywilliam commited on
Commit
75dd2d6
ยท
verified ยท
1 Parent(s): ab89dce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -50,29 +50,29 @@ with gr.Blocks(css="""
50
 
51
  with gr.Row():
52
  with gr.Column():
53
- gr.Markdown("<h3>๐ŸŽ‚ Age</h3>")
54
  age = gr.Slider(minimum=0, maximum=100, step=1, value=35, label="", interactive=True)
55
 
56
- gr.Markdown("<h3>๐ŸŽ“ Education Level</h3>")
57
  education = gr.Dropdown(choices=[str(i) for i in range(1, 17)], value="10", label="", interactive=True)
58
 
59
- gr.Markdown("<h3>โšง๏ธ Sex</h3>")
60
  sex = gr.Radio(choices=["Male", "Female"], value="Male", label="", interactive=True)
61
 
62
- gr.Markdown("<h3>๐Ÿ“ˆ Capital Gain</h3>")
63
  capital_gain = gr.Number(value=0, label="", interactive=True)
64
 
65
- gr.Markdown("<h3>๐Ÿ“‰ Capital Loss</h3>")
66
  capital_loss = gr.Number(value=0, label="", interactive=True)
67
 
68
- gr.Markdown("<h3>โฑ๏ธ Hours per Week</h3>")
69
  hours_per_week = gr.Number(value=40, label="", interactive=True)
70
 
71
  predict_btn = gr.Button("๐Ÿ”ฎ Predict", elem_id="predict-button")
72
 
73
  with gr.Row():
74
  with gr.Column():
75
- gr.Markdown("<h3>๐Ÿ“Š Prediction Result</h3>")
76
  result = gr.Textbox(label="", interactive=False)
77
  confidence = gr.Textbox(label="Confidence", interactive=False)
78
  shap_plot = gr.Plot(label="SHAP Feature Importance")
 
50
 
51
  with gr.Row():
52
  with gr.Column():
53
+ gr.Markdown("<h3>Age</h3>")
54
  age = gr.Slider(minimum=0, maximum=100, step=1, value=35, label="", interactive=True)
55
 
56
+ gr.Markdown("<h3>Education Level</h3>")
57
  education = gr.Dropdown(choices=[str(i) for i in range(1, 17)], value="10", label="", interactive=True)
58
 
59
+ gr.Markdown("<h3>Sex</h3>")
60
  sex = gr.Radio(choices=["Male", "Female"], value="Male", label="", interactive=True)
61
 
62
+ gr.Markdown("<h3>Capital Gain</h3>")
63
  capital_gain = gr.Number(value=0, label="", interactive=True)
64
 
65
+ gr.Markdown("<h3>Capital Loss</h3>")
66
  capital_loss = gr.Number(value=0, label="", interactive=True)
67
 
68
+ gr.Markdown("<h3>Hours per Week</h3>")
69
  hours_per_week = gr.Number(value=40, label="", interactive=True)
70
 
71
  predict_btn = gr.Button("๐Ÿ”ฎ Predict", elem_id="predict-button")
72
 
73
  with gr.Row():
74
  with gr.Column():
75
+ gr.Markdown("<h3>Prediction Result</h3>")
76
  result = gr.Textbox(label="", interactive=False)
77
  confidence = gr.Textbox(label="Confidence", interactive=False)
78
  shap_plot = gr.Plot(label="SHAP Feature Importance")