Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ ARABIC_STOP_WORDS = {
|
|
59 |
'ููุงู', 'ููุงูุช', 'ููู', 'ูุจุนุถ', 'ูุญูู', 'ูุนูุฏ', 'ููุฏ',
|
60 |
'ูููุฏ', 'ููู
', 'ููู', 'ูู
ุง', 'ูููู', 'ูุงูู', 'ูุงูุฐู',
|
61 |
'ูุจูู', 'ููุจู', 'ูุจุนุฏ', 'ููู', 'ูููุง', 'ูููุงู', 'ูุงูู',
|
62 |
-
'ููุฏู', 'ูุนููู', 'ูู
ุซู',
|
63 |
|
64 |
# Arabic numbers
|
65 |
'ูุงุญุฏ', 'ุงุซูุงู', 'ุซูุงุซุฉ', 'ุฃุฑุจุนุฉ', 'ุฎู
ุณุฉ', 'ุณุชุฉ', 'ุณุจุนุฉ',
|
@@ -506,7 +506,7 @@ if uploaded_file is not None:
|
|
506 |
df['country'] = df['country'].str.strip()
|
507 |
df = df.dropna(subset=['country', 'poem'])
|
508 |
# Extract 10 rows per country
|
509 |
-
sampled_df = df.groupby('country').apply(lambda x: x.head(
|
510 |
|
511 |
st.subheader("Topic Modeling Settings")
|
512 |
col1, col2 = st.columns(2)
|
|
|
59 |
'ููุงู', 'ููุงูุช', 'ููู', 'ูุจุนุถ', 'ูุญูู', 'ูุนูุฏ', 'ููุฏ',
|
60 |
'ูููุฏ', 'ููู
', 'ููู', 'ูู
ุง', 'ูููู', 'ูุงูู', 'ูุงูุฐู',
|
61 |
'ูุจูู', 'ููุจู', 'ูุจุนุฏ', 'ููู', 'ูููุง', 'ูููุงู', 'ูุงูู',
|
62 |
+
'ู
ูู','ุงูุง','ูููุง','ููุง','ููู
','ููู','ุนููู','ู
ููุง','ูู
ุง','ููู
','ููู','ูุงูู','ูู','ููู','ุจู','ูุญู','ูู','ุณูู','ููุง','ููุง','ู
ุนุง','ููู
ุง','ูุฅุฐุง','ู
ูู','ุนูู','ุฅุฐ','ูู
','ุจู','ูููุง','ููุฐุง','ููู
','ููุฏู', 'ูุนููู', 'ูู
ุซู',
|
63 |
|
64 |
# Arabic numbers
|
65 |
'ูุงุญุฏ', 'ุงุซูุงู', 'ุซูุงุซุฉ', 'ุฃุฑุจุนุฉ', 'ุฎู
ุณุฉ', 'ุณุชุฉ', 'ุณุจุนุฉ',
|
|
|
506 |
df['country'] = df['country'].str.strip()
|
507 |
df = df.dropna(subset=['country', 'poem'])
|
508 |
# Extract 10 rows per country
|
509 |
+
sampled_df = df.groupby('country').apply(lambda x: x.head(50)).reset_index(drop=True)
|
510 |
|
511 |
st.subheader("Topic Modeling Settings")
|
512 |
col1, col2 = st.columns(2)
|