Spaces:
Sleeping
Sleeping
Commit ·
4b7fc39
1
Parent(s): 911a09d
Update model.py
Browse files
model.py
CHANGED
|
@@ -18,12 +18,11 @@ def run():
|
|
| 18 |
This function is for running the page for predictions
|
| 19 |
'''
|
| 20 |
st.title('What are you feeling right now ?')
|
| 21 |
-
user_input = st.text_input(label='
|
| 22 |
value='Today, i feel...',
|
| 23 |
max_chars=50,
|
| 24 |
key='text_input_key',
|
| 25 |
-
type='default',
|
| 26 |
-
help='Try not to think, and let your heart speak',
|
| 27 |
autocomplete=None,
|
| 28 |
on_change=None,
|
| 29 |
args=None,
|
|
@@ -40,7 +39,8 @@ def run():
|
|
| 40 |
result= prediction([X])
|
| 41 |
st.write(result[1])
|
| 42 |
if result[0] == 0:
|
| 43 |
-
st.write("
|
|
|
|
| 44 |
url = "https://www.healthline.com/health/eft-tapping#:~:text=Emotional%20freedom%20technique%20(EFT)%20is,as%20tapping%20or%20psychological%20acupressure."
|
| 45 |
st.markdown(f'<a href="{url}" target="_blank">You can learn more about EFT here!</a>', unsafe_allow_html=True)
|
| 46 |
elif result[0] == 1:
|
|
|
|
| 18 |
This function is for running the page for predictions
|
| 19 |
'''
|
| 20 |
st.title('What are you feeling right now ?')
|
| 21 |
+
user_input = st.text_input(label='Try not to think, and let your heart speak',
|
| 22 |
value='Today, i feel...',
|
| 23 |
max_chars=50,
|
| 24 |
key='text_input_key',
|
| 25 |
+
type='default',
|
|
|
|
| 26 |
autocomplete=None,
|
| 27 |
on_change=None,
|
| 28 |
args=None,
|
|
|
|
| 39 |
result= prediction([X])
|
| 40 |
st.write(result[1])
|
| 41 |
if result[0] == 0:
|
| 42 |
+
st.write("It's alright")
|
| 43 |
+
st.write("you'll do just fine! If ever you need help on dealing with this, EFT method could certainly help")
|
| 44 |
url = "https://www.healthline.com/health/eft-tapping#:~:text=Emotional%20freedom%20technique%20(EFT)%20is,as%20tapping%20or%20psychological%20acupressure."
|
| 45 |
st.markdown(f'<a href="{url}" target="_blank">You can learn more about EFT here!</a>', unsafe_allow_html=True)
|
| 46 |
elif result[0] == 1:
|