achmaddhani commited on
Commit
0c475de
·
1 Parent(s): 41b4734

Update model.py

Browse files
Files changed (1) hide show
  1. model.py +7 -2
model.py CHANGED
@@ -35,8 +35,13 @@ def run():
35
  st.write('You entered:', user_input)
36
 
37
  # button
38
- if st.button(label='Predict'):
39
  X= preprocess_text(user_input)
40
  result= prediction([X])
41
  st.write(result)
42
-
 
 
 
 
 
 
35
  st.write('You entered:', user_input)
36
 
37
  # button
38
+ if st.button(label='Identify Your Feelings'):
39
  X= preprocess_text(user_input)
40
  result= prediction([X])
41
  st.write(result)
42
+ if emo == 0:
43
+ st.write("Don't worry, you'll be fine")
44
+ elif emo == 1:
45
+ st.write('Calm down bro')
46
+ else:
47
+ st.write("That's Great!")