Spaces:
Sleeping
Sleeping
Commit ·
29c5a01
1
Parent(s): 17bc1b4
Update model.py
Browse files
model.py
CHANGED
|
@@ -38,10 +38,10 @@ def run():
|
|
| 38 |
if st.button(label='Identify Your Feelings'):
|
| 39 |
X= preprocess_text(user_input)
|
| 40 |
result= prediction([X])
|
| 41 |
-
st.write(result)
|
| 42 |
-
if
|
| 43 |
st.write("Don't worry, you'll be fine")
|
| 44 |
-
elif
|
| 45 |
st.write('Calm down bro')
|
| 46 |
else:
|
| 47 |
st.write("That's Great!")
|
|
|
|
| 38 |
if st.button(label='Identify Your Feelings'):
|
| 39 |
X= preprocess_text(user_input)
|
| 40 |
result= prediction([X])
|
| 41 |
+
st.write(result[1])
|
| 42 |
+
if result[0] == 0:
|
| 43 |
st.write("Don't worry, you'll be fine")
|
| 44 |
+
elif result[0] == 1:
|
| 45 |
st.write('Calm down bro')
|
| 46 |
else:
|
| 47 |
st.write("That's Great!")
|