Spaces:
Sleeping
Sleeping
Update app.py
#4
by
CosmoAI
- opened
app.py
CHANGED
@@ -35,11 +35,15 @@ def view_rem():
|
|
35 |
|
36 |
def Chatbot():
|
37 |
st.title("Chatbot")
|
38 |
-
if user_input := st.chat_input("
|
39 |
-
|
|
|
|
|
|
|
|
|
40 |
|
41 |
-
with st.chat_message("user"):
|
42 |
-
|
43 |
|
44 |
# if ans["labels"][0] == "reminders":
|
45 |
# values = getValues(query.lower())
|
|
|
35 |
|
36 |
def Chatbot():
|
37 |
st.title("Chatbot")
|
38 |
+
if user_input := st.chat_input("Describe your goal. e.g: I want to achieve this goal in this time. Be as specific and explanatory as you can."):
|
39 |
+
bardans = bard.get_answer(user_input)['content']
|
40 |
+
anslist = bard.get_answer(f"Make a list of this answer: \n{bardans} \nfor this goal: \n{user_input}\n\nThe list should be in two section, section 1 for all the reminders to track called Daily Routine and section 2 for all information that should be consumed to achieve the goal and stay very focused and motivated with excitement and this section is called Notes")['content']
|
41 |
+
# result = classifyr(user_input,candidate_labels=["reminders", "notes"])
|
42 |
+
with st.chat_message("assistant"):
|
43 |
+
st.write(anslist)
|
44 |
|
45 |
+
# with st.chat_message("user"):
|
46 |
+
# st.write(result["labels"][0])
|
47 |
|
48 |
# if ans["labels"][0] == "reminders":
|
49 |
# values = getValues(query.lower())
|