Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,13 +16,12 @@ genai.configure(api_key=GOOGLE_API_KEY)
|
|
16 |
model = genai.GenerativeModel('gemini-pro')
|
17 |
|
18 |
# Generate text
|
19 |
-
if prompt := st.chat_input("Hi
|
20 |
enprom = f"""
|
21 |
Act as a personal assistant, Understand user intent from the point of view for creating a goal. ask to know more details about the goal.
|
22 |
show your suggestions of routines or tasks which will help to achieve the goal as a table of 3 column of Task title, with time to invest, and repetation frequency.
|
23 |
Follow all the above instruction for this given input:- {prompt}"""
|
24 |
completion = model.generate_content(enprom)
|
25 |
|
26 |
-
|
27 |
-
|
28 |
-
response.reply("Can you tell me a joke?")
|
|
|
16 |
model = genai.GenerativeModel('gemini-pro')
|
17 |
|
18 |
# Generate text
|
19 |
+
if prompt := st.chat_input("Hi"):
|
20 |
enprom = f"""
|
21 |
Act as a personal assistant, Understand user intent from the point of view for creating a goal. ask to know more details about the goal.
|
22 |
show your suggestions of routines or tasks which will help to achieve the goal as a table of 3 column of Task title, with time to invest, and repetation frequency.
|
23 |
Follow all the above instruction for this given input:- {prompt}"""
|
24 |
completion = model.generate_content(enprom)
|
25 |
|
26 |
+
with st.chat_message("Assistant"):
|
27 |
+
st.write(completetion.text)
|
|