avichr commited on
Commit
9073835
·
1 Parent(s): 4a22e65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -1 +1,11 @@
1
- print('try')
 
 
 
 
 
 
 
 
 
 
 
1
+ from transformers import pipeline
2
+ import streamlit as st
3
+
4
+ sentiment = pipeline(
5
+ "sentiment-analysis",
6
+ model="heBERT_sentiment_analysis",
7
+ )
8
+ st.title("Find sentiment")
9
+ st.write("HebEMO is a tool to detect polarity and extract emotions from Hebrew user-generated content (UGC), which was trained on a unique Covid-19 related dataset that we collected and annotated. HebEMO yielded a high performance of weighted average F1-score = 0.96 for polarity classification. Emotion detection reached an F1-score of 0.78-0.97, with the exception of *surprise*, which the model failed to capture (F1 = 0.41). These results are better than the best-reported performance, even when compared to the English language.")
10
+ sent = st.text_area("Text", default_value, height = 20)
11
+ st.write (sentiment(sent))