Update app.py
Browse files
app.py
CHANGED
|
@@ -28,11 +28,10 @@ model = genai.GenerativeModel('gemini-pro')
|
|
| 28 |
# Generate text
|
| 29 |
if prompt := st.chat_input("Hi, I can help you manage your daily tasks."):
|
| 30 |
enprom = f"""
|
| 31 |
-
Understand
|
| 32 |
-
|
| 33 |
-
|
| 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 |
|
|
|
|
| 28 |
# Generate text
|
| 29 |
if prompt := st.chat_input("Hi, I can help you manage your daily tasks."):
|
| 30 |
enprom = f"""
|
| 31 |
+
Understand user intent is for creating a goal or general conversation.
|
| 32 |
+
If user intent is something which relates to goal creation then ask to know more details about the goal.
|
| 33 |
+
show your suggestions of routines or tasks which will help to achieve the goal as a table with 4 columns i.e Task title, time, repetation, Importance.
|
| 34 |
Else if user is trying to have just a normal general conversation, then give a reply accordingly.
|
|
|
|
| 35 |
Follow all the above instruction for the below give input: {prompt}"""
|
| 36 |
completion = model.generate_content(enprom)
|
| 37 |
|