Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ hilton_gray = "#B1B3B3"
|
|
34 |
hilton_cmap = mcolors.LinearSegmentedColormap.from_list("HiltonCmap", [hilton_gold, hilton_blue])
|
35 |
|
36 |
|
37 |
-
def main_func(WorkEnvironment, Voice, LearningDevelopment, WellBeing, SupportiveGM):
|
38 |
new_row = pd.DataFrame.from_dict({
|
39 |
'WorkEnvironment': WorkEnvironment,
|
40 |
'Voice': Voice,
|
@@ -172,7 +172,7 @@ with gr.Blocks(title=title, css=custom_css) as demo:
|
|
172 |
|
173 |
gr.Markdown("### Click on any of the examples below to see how it works:")
|
174 |
gr.Examples([["Median Negative",3.8,3.5,3.6,3.9,3.7], ["Goal Negative",4.8,3.5,3.6,4.9,4.7]],
|
175 |
-
[WorkEnvironment, Voice, LearningDevelopment, WellBeing, SupportiveGM],
|
176 |
[label,local_plot], main_func, cache_examples=True)
|
177 |
|
178 |
demo.launch(share=True)
|
|
|
34 |
hilton_cmap = mcolors.LinearSegmentedColormap.from_list("HiltonCmap", [hilton_gold, hilton_blue])
|
35 |
|
36 |
|
37 |
+
def main_func(Employee, WorkEnvironment, Voice, LearningDevelopment, WellBeing, SupportiveGM):
|
38 |
new_row = pd.DataFrame.from_dict({
|
39 |
'WorkEnvironment': WorkEnvironment,
|
40 |
'Voice': Voice,
|
|
|
172 |
|
173 |
gr.Markdown("### Click on any of the examples below to see how it works:")
|
174 |
gr.Examples([["Median Negative",3.8,3.5,3.6,3.9,3.7], ["Goal Negative",4.8,3.5,3.6,4.9,4.7]],
|
175 |
+
[gr.Textbox(label="Employee"), WorkEnvironment, Voice, LearningDevelopment, WellBeing, SupportiveGM],
|
176 |
[label,local_plot], main_func, cache_examples=True)
|
177 |
|
178 |
demo.launch(share=True)
|