Commit
·
4c1c8f0
1
Parent(s):
c4619f6
Update description
Browse files
app.py
CHANGED
@@ -66,6 +66,14 @@ unique_sex = sorted(X_train["sex"].unique())
|
|
66 |
unique_country = sorted(X_train["native.country"].unique())
|
67 |
|
68 |
with gr.Blocks() as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
with gr.Row():
|
70 |
with gr.Column():
|
71 |
age = gr.Slider(label="Age", minimum=17, maximum=90, step=1, randomize=True)
|
|
|
66 |
unique_country = sorted(X_train["native.country"].unique())
|
67 |
|
68 |
with gr.Blocks() as demo:
|
69 |
+
gr.Markdown("""
|
70 |
+
# Income Classification with XGBoost 💰
|
71 |
+
|
72 |
+
This example shows how to load data from the hugging face hub to train an XGBoost classifier and
|
73 |
+
demo the predictions with gradio.
|
74 |
+
|
75 |
+
The source is [here](https://huggingface.co/spaces/gradio/xgboost-income-prediction-with-explainability).
|
76 |
+
""")
|
77 |
with gr.Row():
|
78 |
with gr.Column():
|
79 |
age = gr.Slider(label="Age", minimum=17, maximum=90, step=1, randomize=True)
|