Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
50 |
-
gr.
|
51 |
],
|
52 |
outputs=[
|
53 |
-
gr.
|
54 |
-
gr.
|
55 |
],
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
live = True,
|
60 |
-
description = " Press flag if any erroneous output comes ",
|
61 |
theme=gr.themes.Soft(),
|
62 |
-
title
|
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
|