Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -228,11 +228,15 @@ def process_and_summarize(df, bert_tokenizer, bert_model, emotion_classifier, to
|
|
228 |
|
229 |
topic_model_params = {
|
230 |
"language": "arabic",
|
231 |
-
"calculate_probabilities":
|
232 |
"min_topic_size": 1,
|
233 |
-
"n_gram_range": (1,
|
234 |
"top_n_words": 15,
|
235 |
"verbose": True,
|
|
|
|
|
|
|
|
|
236 |
}
|
237 |
st.write(f"Total documents: {len(df)}")
|
238 |
st.write(f"Topic strategy: {topic_strategy}")
|
|
|
228 |
|
229 |
topic_model_params = {
|
230 |
"language": "arabic",
|
231 |
+
"calculate_probabilities": False,
|
232 |
"min_topic_size": 1,
|
233 |
+
"n_gram_range": (1, 1),
|
234 |
"top_n_words": 15,
|
235 |
"verbose": True,
|
236 |
+
"hdbscan_args": {
|
237 |
+
"min_cluster_size": 2,
|
238 |
+
"min_samples": 1,
|
239 |
+
"cluster_selection_epsilon": 0.1
|
240 |
}
|
241 |
st.write(f"Total documents: {len(df)}")
|
242 |
st.write(f"Topic strategy: {topic_strategy}")
|