Ankush05 CosmoAI commited on
Commit
b63fd88
1 Parent(s): a6c0a41

Update app.py (#4)

Browse files

- Update app.py (5ad078f011a504b30580b47707e47321e2596c6e)


Co-authored-by: Sachin Verma <CosmoAI@users.noreply.huggingface.co>

Files changed (1) hide show
  1. app.py +8 -4
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("Enter your message"):
39
- result = classifyr(user_input,candidate_labels=["reminders", "general conversation", "notes", "nature", "technology", "maths", "business", "war"])
 
 
 
 
40
 
41
- with st.chat_message("user"):
42
- st.write(result["labels"][0])
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())