Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,8 @@ if prompt := st.chat_input("Hi, I can help you manage your daily tasks."):
|
|
15 |
If user is asking to create task then take all details for creating a task and send as a table for 4 columns i.e Task title, time, repetation, status.
|
16 |
Else if user is trying to have just a normal general conversation, then give a reply accordingly.
|
17 |
or if user is talking about something that can be related to a task and ask more question from the user to get more clarity about task details and show me the the discussions and question you had and also give me a table with those 4 columns for task details.
|
18 |
-
"""
|
19 |
-
completion = palm.generate_text(model=model, prompt=
|
20 |
|
21 |
# response = palm.chat(messages=["Hello."])
|
22 |
# print(response.last) # 'Hello! What can I help you with?'
|
|
|
15 |
If user is asking to create task then take all details for creating a task and send as a table for 4 columns i.e Task title, time, repetation, status.
|
16 |
Else if user is trying to have just a normal general conversation, then give a reply accordingly.
|
17 |
or if user is talking about something that can be related to a task and ask more question from the user to get more clarity about task details and show me the the discussions and question you had and also give me a table with those 4 columns for task details.
|
18 |
+
Follow all the above instruction for the below give input: \n{prompt}"""
|
19 |
+
completion = palm.generate_text(model=model, prompt=enprom, temperature=0.5, max_output_tokens=800)
|
20 |
|
21 |
# response = palm.chat(messages=["Hello."])
|
22 |
# print(response.last) # 'Hello! What can I help you with?'
|