Spaces:
Sleeping
Sleeping
Commit ·
4f9a775
1
Parent(s): ab554c1
Update model.py
Browse files
model.py
CHANGED
|
@@ -20,19 +20,13 @@ def run():
|
|
| 20 |
st.subheader("Can you describe what you're going through right now ?")
|
| 21 |
user_input = st.text_input(
|
| 22 |
label='Express yourself here',
|
| 23 |
-
value='Today,
|
| 24 |
-
max_chars=300,
|
| 25 |
-
key='text_input_key',
|
| 26 |
-
|
| 27 |
-
autocomplete=None,
|
| 28 |
-
on_change=None,
|
| 29 |
-
args=None,
|
| 30 |
-
kwargs=None,
|
| 31 |
-
placeholder='Please Type here...',
|
| 32 |
disabled=False,
|
| 33 |
-
help='Try not to think, and let your heart speak'
|
| 34 |
-
|
| 35 |
-
)
|
| 36 |
st.write('')
|
| 37 |
|
| 38 |
st.write('You entered:', user_input)
|
|
@@ -45,10 +39,10 @@ def run():
|
|
| 45 |
st.write(result[1])
|
| 46 |
if result[0] == 0:
|
| 47 |
st.write("It's alright, you'll do just fine!")
|
| 48 |
-
st.write("If ever you need help on dealing with this, EFT method could certainly help")
|
| 49 |
st.markdown(f'<a href="{url}" target="_blank">You can learn more about EFT here with Rumah Remedi</a>', unsafe_allow_html=True)
|
| 50 |
elif result[0] == 1:
|
| 51 |
-
st.write("It's alright to be angry. We believe you'll get through it eventually! If you need help calming down, we would suggest the link below")
|
| 52 |
st.markdown(f'<a href="{url}" target="_blank">You could destress with Rumah Remedi</a>', unsafe_allow_html=True)
|
| 53 |
else:
|
| 54 |
st.write("That's Great! We hope the rest of the day will be as wonderful!")
|
|
|
|
| 20 |
st.subheader("Can you describe what you're going through right now ?")
|
| 21 |
user_input = st.text_input(
|
| 22 |
label='Express yourself here',
|
| 23 |
+
value='Today, I feel...',
|
| 24 |
+
max_chars=300,
|
| 25 |
+
key='text_input_key',
|
| 26 |
+
placeholder='Please Type here...',
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
disabled=False,
|
| 28 |
+
help='Try not to think, and let your heart speak'
|
| 29 |
+
)
|
|
|
|
| 30 |
st.write('')
|
| 31 |
|
| 32 |
st.write('You entered:', user_input)
|
|
|
|
| 39 |
st.write(result[1])
|
| 40 |
if result[0] == 0:
|
| 41 |
st.write("It's alright, you'll do just fine!")
|
| 42 |
+
st.write("If ever you need help on dealing with this, EFT method could certainly help ↓")
|
| 43 |
st.markdown(f'<a href="{url}" target="_blank">You can learn more about EFT here with Rumah Remedi</a>', unsafe_allow_html=True)
|
| 44 |
elif result[0] == 1:
|
| 45 |
+
st.write("It's alright to be angry. We believe you'll get through it eventually! If you need help calming down, we would suggest the link below ↓")
|
| 46 |
st.markdown(f'<a href="{url}" target="_blank">You could destress with Rumah Remedi</a>', unsafe_allow_html=True)
|
| 47 |
else:
|
| 48 |
st.write("That's Great! We hope the rest of the day will be as wonderful!")
|