avichr commited on
Commit
82fae2a
1 Parent(s): 362de79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,7 +20,7 @@ st.write("HebEMO is a tool to detect polarity and extract emotions from Hebrew u
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)
24
  hebEMO = pd.DataFrame()
25
  for emo in hebEMO_df.columns[1::2]:
26
  hebEMO[emo] = abs(hebEMO_df[emo]-(1-hebEMO_df['confidence_'+emo]))
@@ -29,7 +29,7 @@ st.write (hebEMO)
29
 
30
  plot= st.checkbox('Plot?')
31
  if plot:
32
- ax = spider_plot(hebEMO)
33
  st.pyplot(ax)
34
  # fig = px.bar_polar(hebEMO.melt(), r="value", theta="variable",
35
  # color="variable",
 
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)
24
  hebEMO = pd.DataFrame()
25
  for emo in hebEMO_df.columns[1::2]:
26
  hebEMO[emo] = abs(hebEMO_df[emo]-(1-hebEMO_df['confidence_'+emo]))
 
29
 
30
  plot= st.checkbox('Plot?')
31
  if plot:
32
+ fig, ax = spider_plot(hebEMO)
33
  st.pyplot(ax)
34
  # fig = px.bar_polar(hebEMO.melt(), r="value", theta="variable",
35
  # color="variable",