Spaces:
Building
on
CPU Upgrade
Building
on
CPU Upgrade
Update app.py
#2
by
TomSmail
- opened
app.py
CHANGED
@@ -72,11 +72,15 @@ min_bmi_input = gr.Number(label="Minimum BMI", value=0, minimum=COLUMN_MIN_MAX["
|
|
72 |
max_bmi_input = gr.Number(label="Maximum BMI", value=3, minimum=COLUMN_MIN_MAX["BMI"][0], maximum=COLUMN_MIN_MAX["BMI"][1])
|
73 |
bmi_input = gr.Number(label="BMI", value=20, minimum=COLUMN_MIN_MAX["BMI"][0], maximum=COLUMN_MIN_MAX["BMI"][1])
|
74 |
|
|
|
|
|
|
|
|
|
75 |
smoking_status_input = gr.CheckboxGroup(choices=additional_categories["Smoking_Status"], label="Smoking Status", value=["Never"])
|
76 |
alcohol_consumption_input = gr.CheckboxGroup(choices=additional_categories["Alcohol_Consumption"], label="Alcohol Consumption", value=["None"])
|
77 |
exercise_habits_input = gr.CheckboxGroup(choices=additional_categories["Exercise_Habits"], label="Exercise Habits", value=["Sedentary"])
|
78 |
diet_input = gr.CheckboxGroup(choices=additional_categories["Diet"], label="Diet", value=["Omnivore"])
|
79 |
-
|
80 |
functional_status_input = gr.CheckboxGroup(choices=additional_categories["Functional_Status"], label="Functional Status", value=["Independent"])
|
81 |
previous_trial_participation_input = gr.CheckboxGroup(choices=additional_categories["Previous_Trial_Participation"], label="Previous Trial Participation", value=["No"])
|
82 |
# Define the server's URL
|
|
|
72 |
max_bmi_input = gr.Number(label="Maximum BMI", value=3, minimum=COLUMN_MIN_MAX["BMI"][0], maximum=COLUMN_MIN_MAX["BMI"][1])
|
73 |
bmi_input = gr.Number(label="BMI", value=20, minimum=COLUMN_MIN_MAX["BMI"][0], maximum=COLUMN_MIN_MAX["BMI"][1])
|
74 |
|
75 |
+
min_condition_severity_input = gr.Number(label="Condition Severity", value=5, minimum=COLUMN_MIN_MAX["Condition_Severity"][0], minimum=COLUMN_MIN_MAX["Condition_Severity"][1])
|
76 |
+
max_condition_severity_input = gr.Number(label="Condition Severity", value=5, minimum=COLUMN_MIN_MAX["Condition_Severity"][0], minimum=COLUMN_MIN_MAX["Condition_Severity"][1])
|
77 |
+
condition_severity_input = gr.Number(label="Condition Severity", value=5, minimum=0, maximum=10)
|
78 |
+
|
79 |
smoking_status_input = gr.CheckboxGroup(choices=additional_categories["Smoking_Status"], label="Smoking Status", value=["Never"])
|
80 |
alcohol_consumption_input = gr.CheckboxGroup(choices=additional_categories["Alcohol_Consumption"], label="Alcohol Consumption", value=["None"])
|
81 |
exercise_habits_input = gr.CheckboxGroup(choices=additional_categories["Exercise_Habits"], label="Exercise Habits", value=["Sedentary"])
|
82 |
diet_input = gr.CheckboxGroup(choices=additional_categories["Diet"], label="Diet", value=["Omnivore"])
|
83 |
+
|
84 |
functional_status_input = gr.CheckboxGroup(choices=additional_categories["Functional_Status"], label="Functional Status", value=["Independent"])
|
85 |
previous_trial_participation_input = gr.CheckboxGroup(choices=additional_categories["Previous_Trial_Participation"], label="Previous Trial Participation", value=["No"])
|
86 |
# Define the server's URL
|