avichr commited on
Commit
2522810
1 Parent(s): dbcc766

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -14,5 +14,9 @@ st.title("Find sentiment")
14
  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.")
15
  sent = st.text_area("Text", "write here", height = 20)
16
  # interact(HebEMO_model.hebemo, text='讛讞讬讬诐 讬驻讬诐 讜诪讗讜砖专讬', plot=fixed(True), input_path=fixed(False), save_results=fixed(False),)
17
- st.write (HebEMO_model.hebemo(sent, plot=True))
 
 
 
 
18
 
 
14
  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.")
15
  sent = st.text_area("Text", "write here", height = 20)
16
  # interact(HebEMO_model.hebemo, text='讛讞讬讬诐 讬驻讬诐 讜诪讗讜砖专讬', plot=fixed(True), input_path=fixed(False), save_results=fixed(False),)
17
+ res, fig = HebEMO_model.hebemo(sent, plot=True)
18
+ st.write (res)
19
+ st.pyplot(fig=fig)
20
+
21
+
22