isshagle commited on
Commit
306f37c
1 Parent(s): c3d3cc7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -10
app.py CHANGED
@@ -46,20 +46,18 @@ def cluster_data(age, purchase_rating):
46
  iface = gr.Interface(
47
  fn=cluster_data,
48
  inputs=[
49
- gr.inputs.Number(label="Age"),
50
- gr.inputs.Number(label="Purchase Rating")
51
  ],
52
  outputs=[
53
- gr.outputs.Textbox(label="Cluster"),
54
- gr.outputs.Image(label="Cluster Visualization", type="pil")
55
  ],
56
- examples = [[23,44],
57
- [26,91],
58
- [72,5]],
59
- live = True,
60
- description = " Press flag if any erroneous output comes ",
61
  theme=gr.themes.Soft(),
62
- title = "FlipKart User Segmentation"
63
  )
64
 
65
  # Launch the Gradio app
 
46
  iface = gr.Interface(
47
  fn=cluster_data,
48
  inputs=[
49
+ gr.Number(label="Age"),
50
+ gr.Number(label="Purchase Rating")
51
  ],
52
  outputs=[
53
+ gr.Textbox(label="Cluster"),
54
+ gr.Image(label="Cluster Visualization")
55
  ],
56
+ examples=[[23, 44], [26, 91], [72, 5]],
57
+ live=True,
58
+ description="Press flag if any erroneous output comes",
 
 
59
  theme=gr.themes.Soft(),
60
+ title="FlipKart User Segmentation"
61
  )
62
 
63
  # Launch the Gradio app