Commit
·
2144eef
1
Parent(s):
5d22378
Update dropdown and number inputs to avoid deprecation
Browse files
app.py
CHANGED
@@ -140,10 +140,10 @@ with open('info.md') as f:
|
|
140 |
# otherwise, just use a number input
|
141 |
if colname in cat_value_dicts:
|
142 |
radio_options = list(cat_value_dicts[colname].keys())
|
143 |
-
inputls.append(gr.
|
144 |
else:
|
145 |
# add numerical input
|
146 |
-
inputls.append(gr.
|
147 |
gr.Markdown("<br />")
|
148 |
|
149 |
submit = gr.Button("Click to see your personalized result!", variant="primary")
|
|
|
140 |
# otherwise, just use a number input
|
141 |
if colname in cat_value_dicts:
|
142 |
radio_options = list(cat_value_dicts[colname].keys())
|
143 |
+
inputls.append(gr.Dropdown(choices=radio_options, type="value", label=colname))
|
144 |
else:
|
145 |
# add numerical input
|
146 |
+
inputls.append(gr.Number(label=colname))
|
147 |
gr.Markdown("<br />")
|
148 |
|
149 |
submit = gr.Button("Click to see your personalized result!", variant="primary")
|