kambris commited on
Commit
5979d33
·
verified ·
1 Parent(s): 64fef51

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -202,8 +202,6 @@ def format_emotions(emotion_counts):
202
  'count': count
203
  })
204
  return formatted_emotions
205
-
206
- def main():
207
 
208
  def process_and_summarize(df, bert_tokenizer, bert_model, emotion_classifier, top_n=50, topic_strategy="Auto", n_topics=None, min_topic_size=30):
209
  """Process the data and generate summaries with flexible topic configuration."""
@@ -412,7 +410,4 @@ def process_and_summarize(df, bert_tokenizer, bert_model, emotion_classifier, to
412
  'country': ['Egypt', 'Palestine'],
413
  'poem': ['قصيدة مصرية', 'قصيدة فلسطينية']
414
  })
415
- st.dataframe(example_df)
416
-
417
- if __name__ == "__main__":
418
- main()
 
202
  'count': count
203
  })
204
  return formatted_emotions
 
 
205
 
206
  def process_and_summarize(df, bert_tokenizer, bert_model, emotion_classifier, top_n=50, topic_strategy="Auto", n_topics=None, min_topic_size=30):
207
  """Process the data and generate summaries with flexible topic configuration."""
 
410
  'country': ['Egypt', 'Palestine'],
411
  'poem': ['قصيدة مصرية', 'قصيدة فلسطينية']
412
  })
413
+ st.dataframe(example_df)