fix examples
Browse files
app.py
CHANGED
|
@@ -517,12 +517,12 @@ def optimized_bertopic(df):
|
|
| 517 |
return top_tweets
|
| 518 |
|
| 519 |
global examples
|
| 520 |
-
examples = [
|
| 521 |
"bgc,bonifacio global city",
|
| 522 |
"pobla,poblacion",
|
| 523 |
"cubao",
|
| 524 |
"taft"
|
| 525 |
-
]
|
| 526 |
|
| 527 |
def main(dataset, model, progress=gr.Progress(track_tqdm=True)):
|
| 528 |
global df
|
|
@@ -561,7 +561,7 @@ def main(dataset, model, progress=gr.Progress(track_tqdm=True)):
|
|
| 561 |
headlines = topic_summarization(top_tweets)
|
| 562 |
headlines = '\n'.join(str(h) for h in headlines)
|
| 563 |
# print(headlines)
|
| 564 |
-
top_tweets = '\n'.join (str(tweet) for tweet in top_tweets)
|
| 565 |
|
| 566 |
|
| 567 |
|
|
|
|
| 517 |
return top_tweets
|
| 518 |
|
| 519 |
global examples
|
| 520 |
+
examples = [["katip,katipunan",
|
| 521 |
"bgc,bonifacio global city",
|
| 522 |
"pobla,poblacion",
|
| 523 |
"cubao",
|
| 524 |
"taft"
|
| 525 |
+
]]
|
| 526 |
|
| 527 |
def main(dataset, model, progress=gr.Progress(track_tqdm=True)):
|
| 528 |
global df
|
|
|
|
| 561 |
headlines = topic_summarization(top_tweets)
|
| 562 |
headlines = '\n'.join(str(h) for h in headlines)
|
| 563 |
# print(headlines)
|
| 564 |
+
top_tweets = '\n\n'.join (str(tweet) for tweet in top_tweets)
|
| 565 |
|
| 566 |
|
| 567 |
|