Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from bardapi import Bard
|
|
8 |
# from pymongo import MongoClient
|
9 |
# from transformers import pipeline, Conversation
|
10 |
|
11 |
-
|
12 |
|
13 |
# classifyr = pipeline("zero-shot-classification")
|
14 |
|
@@ -38,9 +38,10 @@ def 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(
|
44 |
|
45 |
# with st.chat_message("user"):
|
46 |
# st.write(result["labels"][0])
|
|
|
8 |
# from pymongo import MongoClient
|
9 |
# from transformers import pipeline, Conversation
|
10 |
|
11 |
+
st.set_page_config(layout="wide")
|
12 |
|
13 |
# classifyr = pipeline("zero-shot-classification")
|
14 |
|
|
|
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 |
+
listrem = bard.get_answer(f"Act as a ToDo Reminder AI who sets reminders or daily routine based upon the daily routine provided below:\n{anslist} \n\nMake a list of reminders with exact message, time, repetation frequecy, day/s kind of neccessary detail that would be required to set a reminder notification. Make it a numeric list.")['content']
|
42 |
# result = classifyr(user_input,candidate_labels=["reminders", "notes"])
|
43 |
with st.chat_message("assistant"):
|
44 |
+
st.write(listrem)
|
45 |
|
46 |
# with st.chat_message("user"):
|
47 |
# st.write(result["labels"][0])
|