check chosen df
Browse files
app.py
CHANGED
@@ -503,12 +503,14 @@ def optimized_bertopic():
|
|
503 |
top_tweets.append(tweets)
|
504 |
|
505 |
def main(dataset, model):
|
|
|
506 |
keyword_list = dataset.split(',')
|
507 |
if dataset in examples:
|
508 |
df = get_example(keyword_list)
|
509 |
place_data = 'test'
|
510 |
else:
|
511 |
place_data = str(scrape(keyword_list))
|
|
|
512 |
cleaning(df)
|
513 |
|
514 |
print(df)
|
|
|
503 |
top_tweets.append(tweets)
|
504 |
|
505 |
def main(dataset, model):
|
506 |
+
global df
|
507 |
keyword_list = dataset.split(',')
|
508 |
if dataset in examples:
|
509 |
df = get_example(keyword_list)
|
510 |
place_data = 'test'
|
511 |
else:
|
512 |
place_data = str(scrape(keyword_list))
|
513 |
+
print(df)
|
514 |
cleaning(df)
|
515 |
|
516 |
print(df)
|