sdbrgo commited on
Commit
ca454d0
·
verified ·
1 Parent(s): 2ae8692

update gradio

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -52,10 +52,17 @@ with gr.Blocks(title="PERCEUL: Perception-Based Worker Profiler") as app:
52
 
53
  with gr.Tab("Final Clustering"):
54
  file_input_final = gr.File(label="Upload CSV")
55
- top_features = gr.Slider(3, 10, value=5, label="Show Top `n` Features")
 
 
 
 
 
 
 
56
 
57
  run_btn = gr.Button("Run Final Clustering")
58
- best_k_out = gr.Textbox(label="Selected K")
59
  drivers_out = gr.JSON(label="Top Feature Drivers per Cluster")
60
 
61
  run_btn.click(
 
52
 
53
  with gr.Tab("Final Clustering"):
54
  file_input_final = gr.File(label="Upload CSV")
55
+ top_features = gr.Number(
56
+ value=5,
57
+ label="Show Top `n` Features",
58
+ minimum=3,
59
+ maximum=10,
60
+ step=1,
61
+ precision=0
62
+ )
63
 
64
  run_btn = gr.Button("Run Final Clustering")
65
+ best_k_out = gr.Number(label="Selected K",interactive=False, precision=0)
66
  drivers_out = gr.JSON(label="Top Feature Drivers per Cluster")
67
 
68
  run_btn.click(