kambris commited on
Commit
277802e
·
verified ·
1 Parent(s): 113329a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -207,15 +207,15 @@ def process_and_summarize(df, bert_tokenizer, bert_model, emotion_classifier, to
207
  summaries = []
208
 
209
  topic_model_params = {
210
- "language": "multilingual",
211
  "calculate_probabilities": True,
212
  "min_topic_size": min_topic_size,
213
- "n_gram_range": (1, 3),
214
  "top_n_words": 15,
215
  "verbose": True
216
  }
217
 
218
- if topic_strategy == "Manual" and n_topics is not None:
219
  topic_model_params["nr_topics"] = n_topics
220
  else:
221
  topic_model_params["nr_topics"] = "auto"
 
207
  summaries = []
208
 
209
  topic_model_params = {
210
+ "language": "arabic",
211
  "calculate_probabilities": True,
212
  "min_topic_size": min_topic_size,
213
+ "n_gram_range": (1, 2),
214
  "top_n_words": 15,
215
  "verbose": True
216
  }
217
 
218
+ if topic_strategy == "Manual":
219
  topic_model_params["nr_topics"] = n_topics
220
  else:
221
  topic_model_params["nr_topics"] = "auto"