Commit
·
6a7a69f
1
Parent(s):
e34f119
referenced file instead of example array
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ def load_interface():
|
|
71 |
'''
|
72 |
|
73 |
#example inputs
|
74 |
-
ex=[
|
75 |
[20,85,135,190,30,125,53,126,0.1,9.9,0.1,9.9,1,2,1,2,79,240,40,140,55,505,72,371,16,405,4,618,1,1660,4.9,20.9,1,6,0.1,10.3,6,1311,1,2062,1,999,0,1],
|
76 |
[40,170,65,75.1,1.0,0.9,1,1,120,70,102,225,260,41,132,15.7,1,0.8,24,26,32,0,45,170,75,89.0,0.7,1.2,1,1,100,67,96,258,345,49,140,15.7,1,1.1,26,28,138,0,30],
|
77 |
[180,90,94.0,1.0,0.8,1,1,115,72,88,177,103,53,103,13.5,1,1.0,19,29,30,0,60,170,65,78.0,1.5,1.0,1,1,110,70,87,190,210,45,103,14.7,1,0.8,21,21,19,0,55],
|
@@ -81,7 +81,7 @@ def load_interface():
|
|
81 |
|
82 |
#set blocks
|
83 |
info_page = gr.Blocks()
|
84 |
-
# model_page = gr.Blocks()
|
85 |
|
86 |
with info_page:
|
87 |
# set title and description
|
@@ -211,9 +211,9 @@ def load_interface():
|
|
211 |
predict,
|
212 |
inputs=inputs,
|
213 |
outputs=smoker_label,
|
214 |
-
examples=
|
215 |
title="Interact with the Ensemble Classifier Model",
|
216 |
-
description="
|
217 |
)
|
218 |
|
219 |
iface = gr.TabbedInterface(
|
|
|
71 |
'''
|
72 |
|
73 |
#example inputs
|
74 |
+
ex=[ #TODO: delete if file works
|
75 |
[20,85,135,190,30,125,53,126,0.1,9.9,0.1,9.9,1,2,1,2,79,240,40,140,55,505,72,371,16,405,4,618,1,1660,4.9,20.9,1,6,0.1,10.3,6,1311,1,2062,1,999,0,1],
|
76 |
[40,170,65,75.1,1.0,0.9,1,1,120,70,102,225,260,41,132,15.7,1,0.8,24,26,32,0,45,170,75,89.0,0.7,1.2,1,1,100,67,96,258,345,49,140,15.7,1,1.1,26,28,138,0,30],
|
77 |
[180,90,94.0,1.0,0.8,1,1,115,72,88,177,103,53,103,13.5,1,1.0,19,29,30,0,60,170,65,78.0,1.5,1.0,1,1,110,70,87,190,210,45,103,14.7,1,0.8,21,21,19,0,55],
|
|
|
81 |
|
82 |
#set blocks
|
83 |
info_page = gr.Blocks()
|
84 |
+
# model_page = gr.Blocks()
|
85 |
|
86 |
with info_page:
|
87 |
# set title and description
|
|
|
211 |
predict,
|
212 |
inputs=inputs,
|
213 |
outputs=smoker_label,
|
214 |
+
examples="file/examples",
|
215 |
title="Interact with the Ensemble Classifier Model",
|
216 |
+
description="**Medical Disclaimer**: The predictions provided by this model are for educational purposes only and should not be considered a substitute for professional medical advice."
|
217 |
)
|
218 |
|
219 |
iface = gr.TabbedInterface(
|