Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -229,8 +229,8 @@ def extract_problem_domains(df,
|
|
| 229 |
text_column='Problem_Description',
|
| 230 |
cluster_range=(10, 50),
|
| 231 |
top_words=17,
|
| 232 |
-
method='sentence_transformers'
|
| 233 |
-
|
| 234 |
):
|
| 235 |
|
| 236 |
|
|
@@ -417,11 +417,6 @@ interface = gr.Interface(
|
|
| 417 |
gr.File(label="Download the processed Excel File containing the ** Project Proposals ** for each Location~Problem paired combination"), # File download output
|
| 418 |
gr.Textbox(label="Console Messages", lines=10, interactive=False) # Console messages output
|
| 419 |
],
|
| 420 |
-
##### Use either below or above format
|
| 421 |
-
# outputs=[
|
| 422 |
-
# gr.Textbox(label="Console Messages", lines=25, interactive=False), # Console messages output
|
| 423 |
-
# gr.File(label="Download the processed Excel File containing the ** Project Proposals ** for each Location~Problem paired combination") # File download output
|
| 424 |
-
# ],
|
| 425 |
|
| 426 |
|
| 427 |
# title="Excel File Uploader",
|
|
|
|
| 229 |
text_column='Problem_Description',
|
| 230 |
cluster_range=(10, 50),
|
| 231 |
top_words=17,
|
| 232 |
+
# method='sentence_transformers'
|
| 233 |
+
method='tfidf_kmeans'
|
| 234 |
):
|
| 235 |
|
| 236 |
|
|
|
|
| 417 |
gr.File(label="Download the processed Excel File containing the ** Project Proposals ** for each Location~Problem paired combination"), # File download output
|
| 418 |
gr.Textbox(label="Console Messages", lines=10, interactive=False) # Console messages output
|
| 419 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 420 |
|
| 421 |
|
| 422 |
# title="Excel File Uploader",
|