Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -173,10 +173,10 @@ def main(file, num_clusters):
|
|
| 173 |
interface = gr.Interface(
|
| 174 |
fn=main,
|
| 175 |
inputs=[
|
| 176 |
-
gr.
|
| 177 |
-
gr.
|
| 178 |
],
|
| 179 |
-
outputs=gr.
|
| 180 |
title="Unanswered User Queries Clustering",
|
| 181 |
description="Upload an Excel file (.xlsx) containing user queries, and the algorithm will automatically cluster the queries into different categories."
|
| 182 |
)
|
|
|
|
| 173 |
interface = gr.Interface(
|
| 174 |
fn=main,
|
| 175 |
inputs=[
|
| 176 |
+
gr.File(label="Upload Excel File (.xlsx)"),
|
| 177 |
+
gr.Number(value=5, label="Number of Clusters")
|
| 178 |
],
|
| 179 |
+
outputs=gr.Dataframe(label="Clustered Data"),
|
| 180 |
title="Unanswered User Queries Clustering",
|
| 181 |
description="Upload an Excel file (.xlsx) containing user queries, and the algorithm will automatically cluster the queries into different categories."
|
| 182 |
)
|