Spaces:
Sleeping
Sleeping
Commit
·
ff672fa
1
Parent(s):
0fd40b1
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,11 +48,8 @@ with gr.Blocks(title=title) as demo:
|
|
| 48 |
gr.Markdown("""---""")
|
| 49 |
gr.Markdown(description2)
|
| 50 |
gr.Markdown("""---""")
|
| 51 |
-
|
| 52 |
-
# with gr.Row():
|
| 53 |
-
|
| 54 |
# with gr.Column():
|
| 55 |
-
|
| 56 |
ValueDiversity = gr.Slider(label="ValueDiversity Score", minimum=1, maximum=5, value=4, step=1)
|
| 57 |
AdequateResources = gr.Slider(label="AdequateResources Score", minimum=1, maximum=5, value=4, step=1)
|
| 58 |
Voice = gr.Slider(label="Voice Score", minimum=1, maximum=5, value=4, step=1)
|
|
@@ -60,7 +57,6 @@ with gr.Blocks(title=title) as demo:
|
|
| 60 |
Workload = gr.Slider(label="Workload Score", minimum=1, maximum=5, value=4, step=1)
|
| 61 |
WorkLifeBalance = gr.Slider(label="WorkLifeBalance Score", minimum=1, maximum=5, value=4, step=1)
|
| 62 |
submit_btn = gr.Button("Analyze")
|
| 63 |
-
|
| 64 |
# with gr.Column(visible=True) as output_col:
|
| 65 |
label = gr.Label(label = "Predicted Label")
|
| 66 |
local_plot = gr.Plot(label = 'Shap:')
|
|
@@ -72,6 +68,8 @@ with gr.Blocks(title=title) as demo:
|
|
| 72 |
)
|
| 73 |
|
| 74 |
gr.Markdown("### Click on any of the examples below to see how it works:")
|
| 75 |
-
gr.Examples([[4,4,4,4,5,5], [5,4,5,4,4,4]],
|
|
|
|
|
|
|
| 76 |
|
| 77 |
demo.launch()
|
|
|
|
| 48 |
gr.Markdown("""---""")
|
| 49 |
gr.Markdown(description2)
|
| 50 |
gr.Markdown("""---""")
|
| 51 |
+
# with gr.Row():
|
|
|
|
|
|
|
| 52 |
# with gr.Column():
|
|
|
|
| 53 |
ValueDiversity = gr.Slider(label="ValueDiversity Score", minimum=1, maximum=5, value=4, step=1)
|
| 54 |
AdequateResources = gr.Slider(label="AdequateResources Score", minimum=1, maximum=5, value=4, step=1)
|
| 55 |
Voice = gr.Slider(label="Voice Score", minimum=1, maximum=5, value=4, step=1)
|
|
|
|
| 57 |
Workload = gr.Slider(label="Workload Score", minimum=1, maximum=5, value=4, step=1)
|
| 58 |
WorkLifeBalance = gr.Slider(label="WorkLifeBalance Score", minimum=1, maximum=5, value=4, step=1)
|
| 59 |
submit_btn = gr.Button("Analyze")
|
|
|
|
| 60 |
# with gr.Column(visible=True) as output_col:
|
| 61 |
label = gr.Label(label = "Predicted Label")
|
| 62 |
local_plot = gr.Plot(label = 'Shap:')
|
|
|
|
| 68 |
)
|
| 69 |
|
| 70 |
gr.Markdown("### Click on any of the examples below to see how it works:")
|
| 71 |
+
gr.Examples([[4,4,4,4,5,5], [5,4,5,4,4,4]],
|
| 72 |
+
[ValueDiversity,AdequateResources,Voice,GrowthAdvancement,Workload,WorkLifeBalance],
|
| 73 |
+
[label,local_plot], main_func, cache_examples=True)
|
| 74 |
|
| 75 |
demo.launch()
|