fixed inputs
Browse files
app.py
CHANGED
|
@@ -510,6 +510,8 @@ def main(dataset, model):
|
|
| 510 |
else:
|
| 511 |
place_data = str(scrape(keyword_list))
|
| 512 |
cleaning()
|
|
|
|
|
|
|
| 513 |
if model == 'LDA':
|
| 514 |
base_lda()
|
| 515 |
coherence = hyperparameter_optimization()
|
|
@@ -534,7 +536,11 @@ examples = [
|
|
| 534 |
["taft"]
|
| 535 |
]
|
| 536 |
iface = gr.Interface(fn=main,
|
| 537 |
-
inputs=["
|
|
|
|
|
|
|
|
|
|
|
|
|
| 538 |
gr.Dropdown(["LDA",
|
| 539 |
"BERTopic"],
|
| 540 |
label="Model")
|
|
|
|
| 510 |
else:
|
| 511 |
place_data = str(scrape(keyword_list))
|
| 512 |
cleaning()
|
| 513 |
+
|
| 514 |
+
print(df)
|
| 515 |
if model == 'LDA':
|
| 516 |
base_lda()
|
| 517 |
coherence = hyperparameter_optimization()
|
|
|
|
| 536 |
["taft"]
|
| 537 |
]
|
| 538 |
iface = gr.Interface(fn=main,
|
| 539 |
+
inputs=[gr.Dropdown(["katip,katipunan",
|
| 540 |
+
"bgc,bonifacio global city",
|
| 541 |
+
"cubao",
|
| 542 |
+
"taft",
|
| 543 |
+
"pobla,poblacion"]),
|
| 544 |
gr.Dropdown(["LDA",
|
| 545 |
"BERTopic"],
|
| 546 |
label="Model")
|