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