Commit
·
ad5638e
1
Parent(s):
4c1c8f0
Change layout
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ unique_country = sorted(X_train["native.country"].unique())
|
|
67 |
|
68 |
with gr.Blocks() as demo:
|
69 |
gr.Markdown("""
|
70 |
-
|
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.
|
@@ -104,6 +104,7 @@ with gr.Blocks() as demo:
|
|
104 |
choices=unique_occupation,
|
105 |
value=lambda: random.choice(unique_occupation),
|
106 |
)
|
|
|
107 |
relationship = gr.Dropdown(
|
108 |
label="Relationship Status",
|
109 |
choices=unique_relationship,
|
|
|
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.
|
|
|
104 |
choices=unique_occupation,
|
105 |
value=lambda: random.choice(unique_occupation),
|
106 |
)
|
107 |
+
with gr.Column():
|
108 |
relationship = gr.Dropdown(
|
109 |
label="Relationship Status",
|
110 |
choices=unique_relationship,
|