Anonymous Authors commited on
Commit
66dc83e
·
1 Parent(s): 67a6c7e

Update app.py

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