MarMont commited on
Commit
2317b83
1 Parent(s): 6dba7a5

fix full lda not getting df

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -182,7 +182,7 @@ def get_topic_value(row, i):
182
  except Exception as e:
183
  print(e)
184
 
185
- def full_lda():
186
  df.rename(columns = {'tweet':'original_tweets'}, inplace = True)
187
 
188
  # Apply the function above and get tweets free of emoji's
@@ -519,7 +519,7 @@ def main(dataset, model):
519
 
520
  print(df)
521
  if model == 'LDA':
522
- top_tweets = full_lda()
523
  else:
524
  base_bertopic()
525
  optimized_bertopic()
 
182
  except Exception as e:
183
  print(e)
184
 
185
+ def full_lda(df):
186
  df.rename(columns = {'tweet':'original_tweets'}, inplace = True)
187
 
188
  # Apply the function above and get tweets free of emoji's
 
519
 
520
  print(df)
521
  if model == 'LDA':
522
+ top_tweets = full_lda(df)
523
  else:
524
  base_bertopic()
525
  optimized_bertopic()