rameshmoorthy
commited on
Commit
•
be494be
1
Parent(s):
162c26a
Update app.py
Browse files
app.py
CHANGED
@@ -43,12 +43,12 @@ with gr.Blocks() as bm25:
|
|
43 |
mode=gr.Radio(["Automated clustering", "Manually choose parameters"], label="Type of algorithm", value="Automated clustering",info="Choose any mode u want")
|
44 |
inputfile.upload(confirmation,inputs=[],outputs=out)
|
45 |
with gr.Row():
|
46 |
-
|
47 |
min_cluster_size=gr.Slider(1, 100, value=5, step=1,label="min_cluster_size", info="Choose minimum No. of docs in a cluster. Lower the value ,higher the clusters created")
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
|
53 |
cluster_btn = gr.Button(value="Cluster")
|
54 |
#[ df,topics_info,barchart,topics_plot,heatmap,hierarchy]
|
|
|
43 |
mode=gr.Radio(["Automated clustering", "Manually choose parameters"], label="Type of algorithm", value="Automated clustering",info="Choose any mode u want")
|
44 |
inputfile.upload(confirmation,inputs=[],outputs=out)
|
45 |
with gr.Row():
|
46 |
+
|
47 |
min_cluster_size=gr.Slider(1, 100, value=5, step=1,label="min_cluster_size", info="Choose minimum No. of docs in a cluster. Lower the value ,higher the clusters created")
|
48 |
+
|
49 |
+
top_n_words=gr.Slider(1, 25, value=10, step=1,label="top_n_words", info="Choose no of key words for a cluster")
|
50 |
+
|
51 |
+
ngram=gr.Slider(1, 3, value=2, step=1,label="ngram", info="Choose no of n-grams words to be taken for clustering")
|
52 |
|
53 |
cluster_btn = gr.Button(value="Cluster")
|
54 |
#[ df,topics_info,barchart,topics_plot,heatmap,hierarchy]
|