Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,8 +7,6 @@ import numpy as np
|
|
7 |
from collections import Counter
|
8 |
import os
|
9 |
|
10 |
-
def main():
|
11 |
-
|
12 |
# Configure page
|
13 |
st.set_page_config(
|
14 |
page_title="Arabic Poem Analysis",
|
@@ -205,6 +203,8 @@ def format_emotions(emotion_counts):
|
|
205 |
})
|
206 |
return formatted_emotions
|
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."""
|
210 |
summaries = []
|
|
|
7 |
from collections import Counter
|
8 |
import os
|
9 |
|
|
|
|
|
10 |
# Configure page
|
11 |
st.set_page_config(
|
12 |
page_title="Arabic Poem Analysis",
|
|
|
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."""
|
210 |
summaries = []
|