Update app.py
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ def chat_message(ques, ans):
|
|
| 38 |
#Creating reminders from the described goal
|
| 39 |
def create_rem(ans):
|
| 40 |
remlist = bard.get_answer(f"Create a daily routine to achieve this goal below and make a list of reminders with values for reminder_message, time, repetition, days\n\nGoal = {ans}")
|
| 41 |
-
|
| 42 |
|
| 43 |
|
| 44 |
def Chatbot():
|
|
@@ -46,10 +46,10 @@ def Chatbot():
|
|
| 46 |
if query:= st.chat_input("Describe your goal"):
|
| 47 |
answer = bard.get_answer(query)
|
| 48 |
chat_message(query, answer)
|
| 49 |
-
create_rem(answer)
|
| 50 |
|
| 51 |
with st.chat_message("assistant"):
|
| 52 |
-
st.write(
|
| 53 |
|
| 54 |
|
| 55 |
Chatbot()
|
|
|
|
| 38 |
#Creating reminders from the described goal
|
| 39 |
def create_rem(ans):
|
| 40 |
remlist = bard.get_answer(f"Create a daily routine to achieve this goal below and make a list of reminders with values for reminder_message, time, repetition, days\n\nGoal = {ans}")
|
| 41 |
+
return remlist
|
| 42 |
|
| 43 |
|
| 44 |
def Chatbot():
|
|
|
|
| 46 |
if query:= st.chat_input("Describe your goal"):
|
| 47 |
answer = bard.get_answer(query)
|
| 48 |
chat_message(query, answer)
|
| 49 |
+
list = create_rem(answer)
|
| 50 |
|
| 51 |
with st.chat_message("assistant"):
|
| 52 |
+
st.write(list["content"])
|
| 53 |
|
| 54 |
|
| 55 |
Chatbot()
|