Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,6 +7,8 @@ import numpy as np
|
|
7 |
from collections import Counter
|
8 |
import os
|
9 |
|
|
|
|
|
10 |
# Configure page
|
11 |
st.set_page_config(
|
12 |
page_title="Arabic Poem Analysis",
|
@@ -410,4 +412,7 @@ def process_and_summarize(df, bert_tokenizer, bert_model, emotion_classifier, to
|
|
410 |
'country': ['Egypt', 'Palestine'],
|
411 |
'poem': ['قصيدة مصرية', 'قصيدة فلسطينية']
|
412 |
})
|
413 |
-
st.dataframe(example_df)
|
|
|
|
|
|
|
|
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",
|
|
|
412 |
'country': ['Egypt', 'Palestine'],
|
413 |
'poem': ['قصيدة مصرية', 'قصيدة فلسطينية']
|
414 |
})
|
415 |
+
st.dataframe(example_df)
|
416 |
+
|
417 |
+
if __name__ == "__main__":
|
418 |
+
main()
|