Spaces:
Runtime error
Runtime error
marcelomoreno26
commited on
Commit
•
13f4578
1
Parent(s):
06e846f
Update app.py
Browse files
app.py
CHANGED
@@ -11,19 +11,18 @@ def load_example_file(file):
|
|
11 |
|
12 |
|
13 |
def main():
|
14 |
-
# Load models
|
15 |
-
tokenizer_sentiment, model_sentiment = load_sentiment_analyzer()
|
16 |
-
tokenizer_summary, model_summary = load_summarizer()
|
17 |
-
pipe_ner = load_NER()
|
18 |
-
|
19 |
st.markdown("""
|
20 |
<style>
|
21 |
body {{
|
22 |
background-color: #e6fedb;
|
23 |
}}
|
24 |
-
</style>
|
25 |
-
|
26 |
-
|
|
|
|
|
|
|
|
|
27 |
st.markdown("This app summarizes Whatsapp chats and provides named entity recognition as well as sentiment analysis for the conversation")
|
28 |
st.markdown("**NOTE**: *This app can only receive chats downloaded from IOS as the downloaded chat format is different than from Android.*")
|
29 |
st.markdown("Download your whatsapp chat by going to Settings > Chats > Export Chat and there select the chat you want to summarize (download 'Without Media').")
|
|
|
11 |
|
12 |
|
13 |
def main():
|
|
|
|
|
|
|
|
|
|
|
14 |
st.markdown("""
|
15 |
<style>
|
16 |
body {{
|
17 |
background-color: #e6fedb;
|
18 |
}}
|
19 |
+
</style>""",unsafe_allow_html=True)
|
20 |
+
# Load models
|
21 |
+
tokenizer_sentiment, model_sentiment = load_sentiment_analyzer()
|
22 |
+
tokenizer_summary, model_summary = load_summarizer()
|
23 |
+
pipe_ner = load_NER()
|
24 |
+
|
25 |
+
st.title("WhatsApp Analysis Tool")
|
26 |
st.markdown("This app summarizes Whatsapp chats and provides named entity recognition as well as sentiment analysis for the conversation")
|
27 |
st.markdown("**NOTE**: *This app can only receive chats downloaded from IOS as the downloaded chat format is different than from Android.*")
|
28 |
st.markdown("Download your whatsapp chat by going to Settings > Chats > Export Chat and there select the chat you want to summarize (download 'Without Media').")
|