Spaces:
Sleeping
Sleeping
Isabel Gwara
commited on
Commit
·
5bfa92d
1
Parent(s):
6e8355d
Update app.py
Browse files
app.py
CHANGED
@@ -133,16 +133,16 @@ for colname in data.columns:
|
|
133 |
# add numerical input
|
134 |
inputls.append(gr.inputs.Number(label=colname))
|
135 |
|
136 |
-
|
137 |
|
138 |
with open('info.md') as f:
|
139 |
with title_block:
|
140 |
gr.Markdown(f.readline())
|
141 |
gr.Markdown('Take the quiz to get a personalized recommendation using AI.')
|
|
|
|
|
142 |
|
143 |
# generate gradio interface
|
144 |
-
interface = gr.Interface(general_predictor, inputs=inputls, outputs="text", allow_flagging='never')
|
145 |
|
146 |
# show the interface
|
147 |
-
|
148 |
-
interface.launch()
|
|
|
133 |
# add numerical input
|
134 |
inputls.append(gr.inputs.Number(label=colname))
|
135 |
|
136 |
+
block = gr.Blocks()
|
137 |
|
138 |
with open('info.md') as f:
|
139 |
with title_block:
|
140 |
gr.Markdown(f.readline())
|
141 |
gr.Markdown('Take the quiz to get a personalized recommendation using AI.')
|
142 |
+
gr.Interface(general_predictor, inputs=inputls, outputs="text", allow_flagging='never')
|
143 |
+
|
144 |
|
145 |
# generate gradio interface
|
|
|
146 |
|
147 |
# show the interface
|
148 |
+
block.launch()
|
|