Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ def main():
|
|
| 36 |
# with st.container():
|
| 37 |
st.title("Mental Illness Bot!!")
|
| 38 |
|
| 39 |
-
st.
|
| 40 |
|
| 41 |
st.caption("_The model is not optimized properly. Therefore, it cannot guarantee the accuracy of the generated answers._")
|
| 42 |
|
|
@@ -72,19 +72,19 @@ def main():
|
|
| 72 |
time.sleep(1)
|
| 73 |
if question.lower() in ["hi","hy", "yo", "hello", "how are you", "hola", "heya", "hey"]:
|
| 74 |
with st.chat_message("user"):
|
| 75 |
-
st.write_stream(('You
|
| 76 |
with st.chat_message("assistant"):
|
| 77 |
st.write_stream(greet)
|
| 78 |
else:
|
| 79 |
with st.chat_message("user"):
|
| 80 |
-
st.write_stream(('You
|
| 81 |
with st.chat_message("assistant"):
|
| 82 |
st.write_stream(model(question))
|
| 83 |
# c = clf.predict([question])[0]
|
| 84 |
# st.write(c)
|
| 85 |
else:
|
| 86 |
# st.warning("Oops! Something went wrong. Please try again.")
|
| 87 |
-
st.write("""Try asking What is Panic Attack , What is Stress ,
|
| 88 |
|
| 89 |
if __name__ == "__main__":
|
| 90 |
main()
|
|
|
|
| 36 |
# with st.container():
|
| 37 |
st.title("Mental Illness Bot!!")
|
| 38 |
|
| 39 |
+
st.text("This bot is trained on the Datasets available on Kaggle and Hugging-Face the bot cannot think it only can predict")
|
| 40 |
|
| 41 |
st.caption("_The model is not optimized properly. Therefore, it cannot guarantee the accuracy of the generated answers._")
|
| 42 |
|
|
|
|
| 72 |
time.sleep(1)
|
| 73 |
if question.lower() in ["hi","hy", "yo", "hello", "how are you", "hola", "heya", "hey"]:
|
| 74 |
with st.chat_message("user"):
|
| 75 |
+
st.write_stream(('You' + question,))
|
| 76 |
with st.chat_message("assistant"):
|
| 77 |
st.write_stream(greet)
|
| 78 |
else:
|
| 79 |
with st.chat_message("user"):
|
| 80 |
+
st.write_stream(('You' + question,))
|
| 81 |
with st.chat_message("assistant"):
|
| 82 |
st.write_stream(model(question))
|
| 83 |
# c = clf.predict([question])[0]
|
| 84 |
# st.write(c)
|
| 85 |
else:
|
| 86 |
# st.warning("Oops! Something went wrong. Please try again.")
|
| 87 |
+
st.write("""Try asking What is Panic Attack , What is Stress , What is mental illness""")
|
| 88 |
|
| 89 |
if __name__ == "__main__":
|
| 90 |
main()
|