kambris commited on
Commit
113329a
·
verified ·
1 Parent(s): 8f46b5b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -318,10 +318,9 @@ if uploaded_file is not None:
318
 
319
  if topic_strategy == "Manual":
320
  n_documents = len(df)
321
- max_topics = min(500, n_documents // 50)
322
  min_topics = 5
323
- recommended_topics = max_topics // 5
324
- default_topics = min(recommended_topics, 50)
325
 
326
  n_topics = st.slider(
327
  "Number of Topics",
 
318
 
319
  if topic_strategy == "Manual":
320
  n_documents = len(df)
321
+ max_topics = 500
322
  min_topics = 5
323
+ default_topics = 20
 
324
 
325
  n_topics = st.slider(
326
  "Number of Topics",