Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,9 @@ with input_block():
|
|
73 |
Education = gr.Dropdown(label="Education Level", choices=["Never attended school", "Grades 1-8", "Grades 9-11", "Grade 12 or GED", "College 1-3 years", "College 4+ years"], default="Never attended school", description="Education level")
|
74 |
Income = gr.Dropdown(label="Income Level", choices=["< $10,000", "$10,000 - $24,999", "$25,000 - $49,999", "$50,000 - $74,999", "$75,000 or more"], default="< $10,000", description="Income level")
|
75 |
|
76 |
-
output_block
|
|
|
|
|
77 |
|
78 |
submit_btn = gr.Button("Analyze")
|
79 |
|
|
|
73 |
Education = gr.Dropdown(label="Education Level", choices=["Never attended school", "Grades 1-8", "Grades 9-11", "Grade 12 or GED", "College 1-3 years", "College 4+ years"], default="Never attended school", description="Education level")
|
74 |
Income = gr.Dropdown(label="Income Level", choices=["< $10,000", "$10,000 - $24,999", "$25,000 - $49,999", "$50,000 - $74,999", "$75,000 or more"], default="< $10,000", description="Income level")
|
75 |
|
76 |
+
with output_block:
|
77 |
+
label = gr.Label(label="Predicted Label")
|
78 |
+
local_plot = gr.Plot(label="SHAP Plot")
|
79 |
|
80 |
submit_btn = gr.Button("Analyze")
|
81 |
|