Update app.py
Browse files
app.py
CHANGED
|
@@ -30,13 +30,17 @@ with gr.Blocks(title="PERCEUL: Perception-Based Worker Profiler") as app:
|
|
| 30 |
step=10,
|
| 31 |
precision=0
|
| 32 |
)
|
|
|
|
| 33 |
btn = gr.Button("Explore Clusters")
|
|
|
|
| 34 |
plot_output = gr.Plot()
|
|
|
|
|
|
|
| 35 |
|
| 36 |
btn.click(
|
| 37 |
fn=explore_clusters,
|
| 38 |
-
inputs=[file_input
|
| 39 |
-
outputs=plot_output
|
| 40 |
)
|
| 41 |
|
| 42 |
with gr.Tab("Final Clustering"):
|
|
|
|
| 30 |
step=10,
|
| 31 |
precision=0
|
| 32 |
)
|
| 33 |
+
|
| 34 |
btn = gr.Button("Explore Clusters")
|
| 35 |
+
|
| 36 |
plot_output = gr.Plot()
|
| 37 |
+
cluster_summary_output = gr.JSON(label="Cluster Sizes")
|
| 38 |
+
outlier_output = gr.Markdown()
|
| 39 |
|
| 40 |
btn.click(
|
| 41 |
fn=explore_clusters,
|
| 42 |
+
inputs=[file_input],
|
| 43 |
+
outputs=[plot_output, cluster_summary_output, outlier_output]
|
| 44 |
)
|
| 45 |
|
| 46 |
with gr.Tab("Final Clustering"):
|