Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ if prompt := st.chat_input("Hi, I can help you manage your daily tasks."):
|
|
| 34 |
Else if user is trying to have just a normal general conversation, then give a reply accordingly.
|
| 35 |
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 task you propose to achieve the goal.
|
| 36 |
Follow all the above instruction for the below give input: {prompt}"""
|
| 37 |
-
completion =
|
| 38 |
|
| 39 |
# response = palm.chat(messages=["Hello."])
|
| 40 |
# print(response.last) # 'Hello! What can I help you with?'
|
|
@@ -42,7 +42,7 @@ if prompt := st.chat_input("Hi, I can help you manage your daily tasks."):
|
|
| 42 |
|
| 43 |
# Print the generated text
|
| 44 |
with st.chat_message("Assostant"):
|
| 45 |
-
st.write(completion.
|
| 46 |
|
| 47 |
|
| 48 |
|
|
|
|
| 34 |
Else if user is trying to have just a normal general conversation, then give a reply accordingly.
|
| 35 |
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 task you propose to achieve the goal.
|
| 36 |
Follow all the above instruction for the below give input: {prompt}"""
|
| 37 |
+
completion = model.generate_content(enprom)
|
| 38 |
|
| 39 |
# response = palm.chat(messages=["Hello."])
|
| 40 |
# print(response.last) # 'Hello! What can I help you with?'
|
|
|
|
| 42 |
|
| 43 |
# Print the generated text
|
| 44 |
with st.chat_message("Assostant"):
|
| 45 |
+
st.write(completion.text)
|
| 46 |
|
| 47 |
|
| 48 |
|