Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ model = genai.GenerativeModel('gemini-pro')
|
|
| 43 |
if userinput := st.chat_input("Hi"):
|
| 44 |
newuserinput = f"""
|
| 45 |
Act as a personal assistant, Understand users intent and tell user their intent while also motivating for setting goals from this input = {userinput}"""
|
| 46 |
-
completetion = model.generate_content(
|
| 47 |
with st.chat_message("Assistant"):
|
| 48 |
st.write(completetion.text)
|
| 49 |
|
|
|
|
| 43 |
if userinput := st.chat_input("Hi"):
|
| 44 |
newuserinput = f"""
|
| 45 |
Act as a personal assistant, Understand users intent and tell user their intent while also motivating for setting goals from this input = {userinput}"""
|
| 46 |
+
completetion = model.generate_content(newuserinput)
|
| 47 |
with st.chat_message("Assistant"):
|
| 48 |
st.write(completetion.text)
|
| 49 |
|