avichr commited on
Commit
3124894
1 Parent(s): 970d6f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -10,14 +10,9 @@ from spider_plot import spider_plot
10
  HebEMO_model = HebEMO()
11
 
12
 
13
- x = st.slider("Select a value")
14
- st.write(x, "squared is", x * x)
15
-
16
-
17
-
18
  st.title("Find sentiment")
19
- 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.")
20
- sent = st.text_area("Text", "write here", height = 20)
21
  # interact(HebEMO_model.hebemo, text='讛讞讬讬诐 讬驻讬诐 讜诪讗讜砖专讬', plot=fixed(True), input_path=fixed(False), save_results=fixed(False),)
22
 
23
  hebEMO_df = HebEMO_model.hebemo(sent, read_lines=True, plot=False)
 
10
  HebEMO_model = HebEMO()
11
 
12
 
 
 
 
 
 
13
  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). More information can be found in our git: https://github.com/avichaychriqui/HeBERT")
15
+ sent = st.text_area("Text", "讛讞讬讬诐 讬驻讬诐 讜诪讗讜砖专讬诐", height = 20)
16
  # interact(HebEMO_model.hebemo, text='讛讞讬讬诐 讬驻讬诐 讜诪讗讜砖专讬', plot=fixed(True), input_path=fixed(False), save_results=fixed(False),)
17
 
18
  hebEMO_df = HebEMO_model.hebemo(sent, read_lines=True, plot=False)