Anonymous Authors commited on
Commit
cfb8d54
·
1 Parent(s): 6653de4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,7 +32,7 @@ with gr.Blocks() as demo:
32
  with gr.Row():
33
  num_clusters = gr.Radio([12, 24, 48], label="number of clusters")
34
  cluster_id = gr.Number(precision=0, label="cluster id")
35
- gallery = gr.Gallery(label="Most representative images in cluster").style(grid=6)
36
  button = gr.Button(value="Go")
37
  with gr.Column():
38
  a = gr.Text(label="Number of items in cluster")
@@ -40,7 +40,7 @@ with gr.Blocks() as demo:
40
  c = gr.Text(label="Model makeup of cluster")
41
  b = gr.Markdown(label="Gender label makeup of cluster")
42
  d = gr.Text(label="Ethnicity label makeup of cluster")
43
-
44
  button.click(fn=show_cluster, inputs=[cluster_id, num_clusters], outputs=[a,b,c,d, gallery])
45
  # demo = gr.Interface(fn=show_cluster, inputs=[gr.Slider(0, 50), gr.Radio([12, 24, 48])], outputs=["text", "text", "text", "text", gr.Gallery()])
46
  demo.launch(debug=True)
 
32
  with gr.Row():
33
  num_clusters = gr.Radio([12, 24, 48], label="number of clusters")
34
  cluster_id = gr.Number(precision=0, label="cluster id")
35
+
36
  button = gr.Button(value="Go")
37
  with gr.Column():
38
  a = gr.Text(label="Number of items in cluster")
 
40
  c = gr.Text(label="Model makeup of cluster")
41
  b = gr.Markdown(label="Gender label makeup of cluster")
42
  d = gr.Text(label="Ethnicity label makeup of cluster")
43
+ gallery = gr.Gallery(label="Most representative images in cluster").style(grid=6)
44
  button.click(fn=show_cluster, inputs=[cluster_id, num_clusters], outputs=[a,b,c,d, gallery])
45
  # demo = gr.Interface(fn=show_cluster, inputs=[gr.Slider(0, 50), gr.Radio([12, 24, 48])], outputs=["text", "text", "text", "text", gr.Gallery()])
46
  demo.launch(debug=True)