Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -110,12 +110,17 @@ iface = gr.Interface(
|
|
| 110 |
" Bachelors degree(BA AB BS)", " Masters degree(MA MS MEng MEd MSW MBA)",
|
| 111 |
" Prof school degree (MD DDS DVM LLB JD)",
|
| 112 |
" Doctorate degree(PhD EdD)"], type="index", label="education"),
|
| 113 |
-
gr.inputs.Radio([" Male", " Female"], label="
|
| 114 |
-
gr.inputs.Slider(minimum = 0, maximum = 99999, label="
|
| 115 |
-
gr.inputs.Slider(minimum = 0, maximum = 4608, label="
|
| 116 |
],
|
| 117 |
gr.outputs.Label(num_top_classes=2),
|
| 118 |
live=True,
|
| 119 |
-
analytics_enabled=False
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
)
|
|
|
|
| 121 |
iface.launch(debug=True)
|
|
|
|
| 110 |
" Bachelors degree(BA AB BS)", " Masters degree(MA MS MEng MEd MSW MBA)",
|
| 111 |
" Prof school degree (MD DDS DVM LLB JD)",
|
| 112 |
" Doctorate degree(PhD EdD)"], type="index", label="education"),
|
| 113 |
+
gr.inputs.Radio([" Male", " Female"], label="Sex (M=0, F=1)", type="index"),
|
| 114 |
+
gr.inputs.Slider(minimum = 0, maximum = 99999, label="capital gains"),
|
| 115 |
+
gr.inputs.Slider(minimum = 0, maximum = 4608, label="capital losses")
|
| 116 |
],
|
| 117 |
gr.outputs.Label(num_top_classes=2),
|
| 118 |
live=True,
|
| 119 |
+
analytics_enabled=False,
|
| 120 |
+
examples=[
|
| 121 |
+
[" Masters degree(MA MS MEng MEd MSW MBA)", 0, 7298, 0],
|
| 122 |
+
[" Bachelors degree(BA AB BS)", 0, 6514, 0],
|
| 123 |
+
],
|
| 124 |
)
|
| 125 |
+
|
| 126 |
iface.launch(debug=True)
|