yashkens commited on
Commit
fad8b51
โ€ข
1 Parent(s): 904421a

some fixes

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -7,7 +7,7 @@ nltk.download('punkt')
7
 
8
  st.title("Strange Story Critique service")
9
 
10
- name = st.text_input('Who are you?', 'Right, who am I?')
11
  text = st.text_area("Submit your story and I'll tell you my unprofessional opinion", '''Words and symbols are meant to be here''')
12
 
13
  if text != 'Words and symbols are meant to be here':
@@ -24,8 +24,8 @@ if text != 'Words and symbols are meant to be here':
24
  joy = emo['score']
25
  elif emo['label'] == 'sadness':
26
  sad = emo['score']
27
- st.write(f"๐Ÿ˜ธ Joy level: {joy:.2f}%")
28
- st.write(f"๐Ÿ˜ฟ Sadness level: {sad:.2f}%")
29
 
30
  # emotional arcs
31
  sents = sent_tokenize(text)
 
7
 
8
  st.title("Strange Story Critique service")
9
 
10
+ # name = st.text_input('Who are you?', 'Right, who am I?')
11
  text = st.text_area("Submit your story and I'll tell you my unprofessional opinion", '''Words and symbols are meant to be here''')
12
 
13
  if text != 'Words and symbols are meant to be here':
 
24
  joy = emo['score']
25
  elif emo['label'] == 'sadness':
26
  sad = emo['score']
27
+ st.write(f"๐Ÿ˜ธ Joy level: {joy*100:.2f}%")
28
+ st.write(f"๐Ÿ˜ฟ Sadness level: {sad*100:.2f}%")
29
 
30
  # emotional arcs
31
  sents = sent_tokenize(text)